diff options
author | vollick@google.com <vollick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 17:48:20 +0000 |
---|---|---|
committer | vollick@google.com <vollick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 17:48:20 +0000 |
commit | 03d12f0c42aa5c11673e9b2dcec1d1966fb49589 (patch) | |
tree | e5bd24af8ade6f77100576bb144a90fe7a8374df /content/browser/renderer_host/render_widget_host_view_mac.h | |
parent | 13fc4b42892ee3f0821e49a368afbd2693bcf227 (diff) | |
download | chromium_src-03d12f0c42aa5c11673e9b2dcec1d1966fb49589.zip chromium_src-03d12f0c42aa5c11673e9b2dcec1d1966fb49589.tar.gz chromium_src-03d12f0c42aa5c11673e9b2dcec1d1966fb49589.tar.bz2 |
Revert 121896 - Extract RenderWidgetHostView (for Chrome-like embedders) vs. RenderWidgetHostViewBase
(for content itself, and for embedders porting to other platforms).
Attempting to fix win_aura build failure.
BUG=98716
Review URL: http://codereview.chromium.org/9307055
TBR=joi@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9348090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_widget_host_view_mac.h')
-rw-r--r-- | content/browser/renderer_host/render_widget_host_view_mac.h | 53 |
1 files changed, 24 insertions, 29 deletions
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h index fd9aab9..3208611 100644 --- a/content/browser/renderer_host/render_widget_host_view_mac.h +++ b/content/browser/renderer_host/render_widget_host_view_mac.h @@ -158,47 +158,41 @@ class RenderWidgetHostViewMacEditCommandHelper; // If the render process dies, the RenderWidgetHost* goes away and all // references to it must become NULL." // -class RenderWidgetHostViewMac : public RenderWidgetHostViewBase { +class RenderWidgetHostViewMac : public RenderWidgetHostView { public: + // The view will associate itself with the given widget. The native view must + // be hooked up immediately to the view hierarchy, or else when it is + // deleted it will delete this out from under the caller. + explicit RenderWidgetHostViewMac(RenderWidgetHost* widget); virtual ~RenderWidgetHostViewMac(); RenderWidgetHostViewCocoa* cocoa_view() const { return cocoa_view_; } void SetDelegate(NSObject<RenderWidgetHostViewMacDelegate>* delegate); - // RenderWidgetHostView implementation. + // Implementation of RenderWidgetHostView: virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; + virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, + const gfx::Rect& pos) OVERRIDE; + virtual void InitAsFullscreen( + RenderWidgetHostView* reference_host_view) OVERRIDE; virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; + virtual void DidBecomeSelected() OVERRIDE; + virtual void WasHidden() OVERRIDE; virtual void SetSize(const gfx::Size& size) OVERRIDE; virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; virtual gfx::NativeView GetNativeView() const OVERRIDE; virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; + virtual void MovePluginWindows( + const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; + virtual void Focus() OVERRIDE; + virtual void Blur() OVERRIDE; virtual bool HasFocus() const OVERRIDE; virtual void Show() OVERRIDE; virtual void Hide() OVERRIDE; virtual bool IsShowing() OVERRIDE; virtual gfx::Rect GetViewBounds() const OVERRIDE; - virtual void SetShowingContextMenu(bool showing) OVERRIDE; - virtual void SetActive(bool active) OVERRIDE; - virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE; - virtual void SetWindowVisibility(bool visible) OVERRIDE; - virtual void WindowFrameChanged() OVERRIDE; - virtual void UnhandledWheelEvent( - const WebKit::WebMouseWheelEvent& event) OVERRIDE; - virtual void SetBackground(const SkBitmap& background) OVERRIDE; - - // Implementation of RenderWidgetHostViewBase. - virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, - const gfx::Rect& pos) OVERRIDE; - virtual void InitAsFullscreen( - RenderWidgetHostView* reference_host_view) OVERRIDE; - virtual void DidBecomeSelected() OVERRIDE; - virtual void WasHidden() OVERRIDE; - virtual void MovePluginWindows( - const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; - virtual void Focus() OVERRIDE; - virtual void Blur() OVERRIDE; virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; virtual void SetIsLoading(bool is_loading) OVERRIDE; virtual void TextInputStateChanged(ui::TextInputType state, @@ -217,10 +211,16 @@ class RenderWidgetHostViewMac : public RenderWidgetHostViewBase { virtual void SelectionChanged(const string16& text, size_t offset, const ui::Range& range) OVERRIDE; + virtual void SetShowingContextMenu(bool showing) OVERRIDE; virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; virtual void OnAcceleratedCompositingStateChange() OVERRIDE; + virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE; // See comment in RenderWidgetHostView! virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; + virtual void SetActive(bool active) OVERRIDE; + virtual void SetWindowVisibility(bool visible) OVERRIDE; + virtual void WindowFrameChanged() OVERRIDE; + virtual void SetBackground(const SkBitmap& background) OVERRIDE; virtual void OnAccessibilityNotifications( const std::vector<AccessibilityHostMsg_NotificationParams>& params @@ -277,6 +277,8 @@ class RenderWidgetHostViewMac : public RenderWidgetHostViewBase { // to be reloaded. void ForceTextureReload(); + virtual void UnhandledWheelEvent( + const WebKit::WebMouseWheelEvent& event) OVERRIDE; virtual void ProcessTouchAck(bool processed) OVERRIDE; virtual void SetHasHorizontalScrollbar( bool has_horizontal_scrollbar) OVERRIDE; @@ -346,13 +348,6 @@ class RenderWidgetHostViewMac : public RenderWidgetHostViewBase { AcceleratedSurfaceContainerManagerMac plugin_container_manager_; private: - friend class RenderWidgetHostView; - - // The view will associate itself with the given widget. The native view must - // be hooked up immediately to the view hierarchy, or else when it is - // deleted it will delete this out from under the caller. - explicit RenderWidgetHostViewMac(RenderWidgetHost* widget); - // If the window is at the root of the plugin container hierachy, // we need to update the geometry manually. void UpdatePluginGeometry(gfx::PluginWindowHandle window, |