From 073b1c164bb9b8532e1e19a2f56b2fa09ef89919 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Sun, 17 Nov 2013 19:02:49 -0500 Subject: [PATCH] Fix cpplint errors in inspectable_web_contents_view_win.cc --- .../win/inspectable_web_contents_view_win.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/brightray/browser/win/inspectable_web_contents_view_win.cc b/brightray/browser/win/inspectable_web_contents_view_win.cc index 508d4c0bc932..a25cdc8919f7 100644 --- a/brightray/browser/win/inspectable_web_contents_view_win.cc +++ b/brightray/browser/win/inspectable_web_contents_view_win.cc @@ -15,11 +15,13 @@ const int kWindowInset = 100; } -InspectableWebContentsView* CreateInspectableContentsView(InspectableWebContentsImpl* inspectable_web_contents) { +InspectableWebContentsView* CreateInspectableContentsView( + InspectableWebContentsImpl* inspectable_web_contents) { return new InspectableWebContentsViewWin(inspectable_web_contents); } -InspectableWebContentsViewWin::InspectableWebContentsViewWin(InspectableWebContentsImpl* inspectable_web_contents) +InspectableWebContentsViewWin::InspectableWebContentsViewWin( + InspectableWebContentsImpl* inspectable_web_contents) : inspectable_web_contents_(inspectable_web_contents) { } @@ -29,7 +31,8 @@ InspectableWebContentsViewWin::~InspectableWebContentsViewWin() { } gfx::NativeView InspectableWebContentsViewWin::GetNativeView() const { - return inspectable_web_contents_->GetWebContents()->GetView()->GetNativeView(); + auto web_contents = inspectable_web_contents_->GetWebContents(); + return web_contents->GetView()->GetNativeView(); } void InspectableWebContentsViewWin::ShowDevTools() { @@ -41,7 +44,9 @@ void InspectableWebContentsViewWin::ShowDevTools() { auto contents_view = inspectable_web_contents_->GetWebContents()->GetView(); auto size = contents_view->GetContainerSize(); size.Enlarge(-kWindowInset, -kWindowInset); - ui::CenterAndSizeWindow(contents_view->GetNativeView(), devtools_window_->hwnd(), size); + ui::CenterAndSizeWindow(contents_view->GetNativeView(), + devtools_window_->hwnd(), + size); ShowWindow(devtools_window_->hwnd(), SW_SHOWNORMAL); }