Fix cpplint errors in inspectable_web_contents_impl.h

This commit is contained in:
Adam Roben 2013-11-17 18:22:48 -05:00
parent 0805b414e9
commit 877a1f0371

View file

@ -8,6 +8,8 @@
#include "browser/inspectable_web_contents.h" #include "browser/inspectable_web_contents.h"
#include <string>
#include "content/public/browser/devtools_frontend_host_delegate.h" #include "content/public/browser/devtools_frontend_host_delegate.h"
#include "content/public/browser/web_contents_delegate.h" #include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h" #include "content/public/browser/web_contents_observer.h"
@ -29,9 +31,9 @@ class InspectableWebContentsImpl :
content::WebContentsObserver, content::WebContentsObserver,
content::WebContentsDelegate { content::WebContentsDelegate {
public: public:
static void RegisterPrefs(PrefRegistrySimple*); static void RegisterPrefs(PrefRegistrySimple* pref_registry);
InspectableWebContentsImpl(content::WebContents*); explicit InspectableWebContentsImpl(content::WebContents*);
virtual ~InspectableWebContentsImpl(); virtual ~InspectableWebContentsImpl();
virtual InspectableWebContentsView* GetView() const OVERRIDE; virtual InspectableWebContentsView* GetView() const OVERRIDE;
@ -39,7 +41,9 @@ public:
virtual void ShowDevTools() OVERRIDE; 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(); void UpdateFrontendDockSide();
@ -60,7 +64,8 @@ private:
virtual void RequestFileSystems() OVERRIDE; virtual void RequestFileSystems() OVERRIDE;
virtual void AddFileSystem() OVERRIDE; virtual void AddFileSystem() OVERRIDE;
virtual void RemoveFileSystem(const std::string& file_system_path) 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 StopIndexing(int request_id) OVERRIDE;
virtual void SearchInPath(int request_id, virtual void SearchInPath(int request_id,
const std::string& file_system_path, const std::string& file_system_path,
@ -69,7 +74,8 @@ private:
// content::WebContentsObserver // 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, virtual void DidFinishLoad(int64 frame_id,
const GURL& validated_url, const GURL& validated_url,
bool is_main_frame, bool is_main_frame,
@ -78,7 +84,8 @@ private:
// content::WebContentsDelegate // content::WebContentsDelegate
virtual void HandleKeyboardEvent(content::WebContents*, const content::NativeWebKeyboardEvent&) OVERRIDE; virtual void HandleKeyboardEvent(
content::WebContents*, const content::NativeWebKeyboardEvent&) OVERRIDE;
scoped_ptr<content::WebContents> web_contents_; scoped_ptr<content::WebContents> web_contents_;
scoped_ptr<content::DevToolsClientHost> frontend_host_; scoped_ptr<content::DevToolsClientHost> frontend_host_;