OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <IOSurface/IOSurfaceAPI.h> | 9 #include <IOSurface/IOSurfaceAPI.h> |
10 #include <list> | 10 #include <list> |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 explicit RenderWidgetHostViewMac(RenderWidgetHost* widget); | 229 explicit RenderWidgetHostViewMac(RenderWidgetHost* widget); |
230 virtual ~RenderWidgetHostViewMac(); | 230 virtual ~RenderWidgetHostViewMac(); |
231 | 231 |
232 RenderWidgetHostViewCocoa* cocoa_view() const { return cocoa_view_; } | 232 RenderWidgetHostViewCocoa* cocoa_view() const { return cocoa_view_; } |
233 | 233 |
234 // |delegate| is used to separate out the logic from the NSResponder delegate. | 234 // |delegate| is used to separate out the logic from the NSResponder delegate. |
235 // |delegate| is retained by this class. | 235 // |delegate| is retained by this class. |
236 // |delegate| should be set at most once. | 236 // |delegate| should be set at most once. |
237 CONTENT_EXPORT void SetDelegate( | 237 CONTENT_EXPORT void SetDelegate( |
238 NSObject<RenderWidgetHostViewMacDelegate>* delegate); | 238 NSObject<RenderWidgetHostViewMacDelegate>* delegate); |
239 void SetAllowOverlappingViews(bool overlapping); | |
240 void SetAllowPauseForResizeOrRepaint(bool allow); | 239 void SetAllowPauseForResizeOrRepaint(bool allow); |
241 | 240 |
242 // RenderWidgetHostView implementation. | 241 // RenderWidgetHostView implementation. |
243 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 242 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
244 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 243 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
245 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 244 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
246 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 245 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
247 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 246 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
248 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 247 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
249 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 248 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 641 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
643 | 642 |
644 base::WeakPtrFactory<RenderWidgetHostViewMac> | 643 base::WeakPtrFactory<RenderWidgetHostViewMac> |
645 software_frame_weak_ptr_factory_; | 644 software_frame_weak_ptr_factory_; |
646 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 645 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
647 }; | 646 }; |
648 | 647 |
649 } // namespace content | 648 } // namespace content |
650 | 649 |
651 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 650 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |