From 877a1f03712efc4de4933aeec66bbb70a7414b15 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Sun, 17 Nov 2013 18:22:48 -0500 Subject: [PATCH] Fix cpplint errors in inspectable_web_contents_impl.h --- .../browser/inspectable_web_contents_impl.h | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/brightray/browser/inspectable_web_contents_impl.h b/brightray/browser/inspectable_web_contents_impl.h index 3fd83d1651f9..6aab5bab3eaa 100644 --- a/brightray/browser/inspectable_web_contents_impl.h +++ b/brightray/browser/inspectable_web_contents_impl.h @@ -8,6 +8,8 @@ #include "browser/inspectable_web_contents.h" +#include + #include "content/public/browser/devtools_frontend_host_delegate.h" #include "content/public/browser/web_contents_delegate.h" #include "content/public/browser/web_contents_observer.h" @@ -28,10 +30,10 @@ class InspectableWebContentsImpl : content::DevToolsFrontendHostDelegate, content::WebContentsObserver, content::WebContentsDelegate { -public: - static void RegisterPrefs(PrefRegistrySimple*); + public: + static void RegisterPrefs(PrefRegistrySimple* pref_registry); - InspectableWebContentsImpl(content::WebContents*); + explicit InspectableWebContentsImpl(content::WebContents*); virtual ~InspectableWebContentsImpl(); virtual InspectableWebContentsView* GetView() const OVERRIDE; @@ -39,13 +41,15 @@ public: virtual void ShowDevTools() OVERRIDE; - content::WebContents* devtools_web_contents() { return devtools_web_contents_.get(); } + content::WebContents* devtools_web_contents() { + return devtools_web_contents_.get(); + } -private: + private: void UpdateFrontendDockSide(); // content::DevToolsFrontendHostDelegate - + virtual void ActivateWindow() OVERRIDE; virtual void ChangeAttachedWindowHeight(unsigned height) OVERRIDE; virtual void CloseWindow() OVERRIDE; @@ -60,16 +64,18 @@ private: virtual void RequestFileSystems() OVERRIDE; virtual void AddFileSystem() OVERRIDE; virtual void RemoveFileSystem(const std::string& file_system_path) OVERRIDE; - virtual void IndexPath(int request_id, const std::string& file_system_path) OVERRIDE; + virtual void IndexPath(int request_id, + const std::string& file_system_path) OVERRIDE; virtual void StopIndexing(int request_id) OVERRIDE; virtual void SearchInPath(int request_id, const std::string& file_system_path, const std::string& query) OVERRIDE; virtual void InspectedContentsClosing() OVERRIDE; - + // content::WebContentsObserver - - virtual void AboutToNavigateRenderView(content::RenderViewHost* render_view_host) OVERRIDE; + + virtual void AboutToNavigateRenderView( + content::RenderViewHost* render_view_host) OVERRIDE; virtual void DidFinishLoad(int64 frame_id, const GURL& validated_url, bool is_main_frame, @@ -77,9 +83,10 @@ private: virtual void WebContentsDestroyed(content::WebContents*) OVERRIDE; // content::WebContentsDelegate - - virtual void HandleKeyboardEvent(content::WebContents*, const content::NativeWebKeyboardEvent&) OVERRIDE; - + + virtual void HandleKeyboardEvent( + content::WebContents*, const content::NativeWebKeyboardEvent&) OVERRIDE; + scoped_ptr web_contents_; scoped_ptr frontend_host_; scoped_ptr devtools_web_contents_;