From 405a02c5e1a2fc19419cf81cebfcacf44afa43e5 Mon Sep 17 00:00:00 2001 From: jornh Date: Tue, 15 Apr 2014 08:47:48 +0200 Subject: [PATCH] Stay < col 132 --- CefSharp.Wpf/WebView.cs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/CefSharp.Wpf/WebView.cs b/CefSharp.Wpf/WebView.cs index d073e6ce2..b32c765b8 100644 --- a/CefSharp.Wpf/WebView.cs +++ b/CefSharp.Wpf/WebView.cs @@ -1,4 +1,4 @@ -// Copyright © 2010-2013 The CefSharp Project. All rights reserved. +// Copyright © 2010-2014 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. @@ -20,7 +20,12 @@ namespace CefSharp.Wpf { public class WebView : ContentControl, IRenderWebBrowser, IWpfWebBrowser { - private static readonly Key[] KeysToSendtoBrowser = new[] { Key.Tab, Key.Home, Key.End, Key.Left, Key.Right, Key.Up, Key.Down }; + private static readonly Key[] KeysToSendtoBrowser = new[] { + Key.Tab, + Key.Home, Key.End, + Key.Left, Key.Right, + Key.Up, Key.Down + }; private HwndSource source; private HwndSourceHook sourceHook; @@ -390,8 +395,8 @@ namespace CefSharp.Wpf private static void OnApplicationExit(object sender, ExitEventArgs e) { - // TODO: This prevents AccessViolation on shutdown, but it would be better handled by the Cef class; the WebView control - // should not explicitly have to perform this. + // TODO: This prevents AccessViolation on shutdown, but it would be better handled by the Cef class; the WebView + // control should not explicitly have to perform this. if (Cef.IsInitialized) { GC.Collect(); @@ -954,11 +959,13 @@ namespace CefSharp.Wpf { if (bitmapInfo.IsPopup) { - bitmapInfo.InteropBitmap = SetBitmapHelper(bitmapInfo, (InteropBitmap)bitmapInfo.InteropBitmap, bitmap => popupImage.Source = bitmap); + bitmapInfo.InteropBitmap = SetBitmapHelper(bitmapInfo, + (InteropBitmap)bitmapInfo.InteropBitmap, bitmap => popupImage.Source = bitmap); } else { - bitmapInfo.InteropBitmap = SetBitmapHelper(bitmapInfo, (InteropBitmap)bitmapInfo.InteropBitmap, bitmap => image.Source = bitmap); + bitmapInfo.InteropBitmap = SetBitmapHelper(bitmapInfo, + (InteropBitmap)bitmapInfo.InteropBitmap, bitmap => image.Source = bitmap); } } }