Fix cpplint errors in inspectable_web_contents_view_mac.h

This commit is contained in:
Adam Roben 2013-11-17 18:24:36 -05:00
parent ea689b31a4
commit cb684c5c6e

View file

@ -1,9 +1,11 @@
#ifndef BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_MAC_H_ #ifndef BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_MAC_H_
#define BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_MAC_H_ #define BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_VIEW_MAC_H_
#import "browser/inspectable_web_contents_view.h" #include "browser/inspectable_web_contents_view.h"
#import "base/mac/scoped_nsobject.h" #include <string>
#include "base/mac/scoped_nsobject.h"
@class BRYInspectableWebContentsView; @class BRYInspectableWebContentsView;
@ -12,20 +14,23 @@ namespace brightray {
class InspectableWebContentsImpl; class InspectableWebContentsImpl;
class InspectableWebContentsViewMac : public InspectableWebContentsView { class InspectableWebContentsViewMac : public InspectableWebContentsView {
public: public:
InspectableWebContentsViewMac(InspectableWebContentsImpl*); explicit InspectableWebContentsViewMac(
InspectableWebContentsImpl* inspectable_web_contents_impl);
virtual gfx::NativeView GetNativeView() const OVERRIDE; virtual gfx::NativeView GetNativeView() const OVERRIDE;
virtual void ShowDevTools() OVERRIDE; virtual void ShowDevTools() OVERRIDE;
virtual void CloseDevTools() OVERRIDE; virtual void CloseDevTools() OVERRIDE;
virtual bool SetDockSide(const std::string& side) OVERRIDE; virtual bool SetDockSide(const std::string& side) OVERRIDE;
InspectableWebContentsImpl* inspectable_web_contents() { return inspectable_web_contents_; } InspectableWebContentsImpl* inspectable_web_contents() {
return inspectable_web_contents_;
}
private: private:
// Owns us. // Owns us.
InspectableWebContentsImpl* inspectable_web_contents_; InspectableWebContentsImpl* inspectable_web_contents_;
base::scoped_nsobject<BRYInspectableWebContentsView> view_; base::scoped_nsobject<BRYInspectableWebContentsView> view_;
DISALLOW_COPY_AND_ASSIGN(InspectableWebContentsViewMac); DISALLOW_COPY_AND_ASSIGN(InspectableWebContentsViewMac);