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/IOSurface.h> | 9 #include <IOSurface/IOSurface.h> |
10 #include <stddef.h> | 10 #include <stddef.h> |
11 #include <stdint.h> | 11 #include <stdint.h> |
12 | 12 |
13 #include <list> | 13 #include <list> |
14 #include <map> | 14 #include <map> |
15 #include <memory> | 15 #include <memory> |
16 #include <set> | 16 #include <set> |
17 #include <string> | 17 #include <string> |
18 #include <utility> | 18 #include <utility> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "base/mac/scoped_nsobject.h" | 21 #include "base/mac/scoped_nsobject.h" |
22 #include "base/macros.h" | 22 #include "base/macros.h" |
23 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
| 25 #include "cc/output/begin_frame_args.h" |
25 #include "cc/surfaces/surface_id.h" | 26 #include "cc/surfaces/surface_id.h" |
26 #include "content/browser/renderer_host/browser_compositor_view_mac.h" | 27 #include "content/browser/renderer_host/browser_compositor_view_mac.h" |
27 #include "content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h" | 28 #include "content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h" |
28 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 29 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
29 #include "content/browser/renderer_host/text_input_manager.h" | 30 #include "content/browser/renderer_host/text_input_manager.h" |
30 #include "content/common/content_export.h" | 31 #include "content/common/content_export.h" |
31 #include "content/common/cursors/webcursor.h" | 32 #include "content/common/cursors/webcursor.h" |
32 #include "content/common/edit_command.h" | 33 #include "content/common/edit_command.h" |
33 #include "ipc/ipc_sender.h" | 34 #include "ipc/ipc_sender.h" |
34 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 35 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 296 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
296 bool CanCopyToVideoFrame() const override; | 297 bool CanCopyToVideoFrame() const override; |
297 void BeginFrameSubscription( | 298 void BeginFrameSubscription( |
298 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 299 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
299 void EndFrameSubscription() override; | 300 void EndFrameSubscription() override; |
300 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; | 301 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; |
301 void FocusedNodeChanged(bool is_editable_node, | 302 void FocusedNodeChanged(bool is_editable_node, |
302 const gfx::Rect& node_bounds_in_screen) override; | 303 const gfx::Rect& node_bounds_in_screen) override; |
303 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, | 304 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, |
304 cc::CompositorFrame frame) override; | 305 cc::CompositorFrame frame) override; |
| 306 void OnBeginFrameDidNotDraw(const cc::BeginFrameAck& ack) override; |
305 void ClearCompositorFrame() override; | 307 void ClearCompositorFrame() override; |
306 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 308 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
307 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 309 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
308 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; | 310 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; |
309 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 311 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
310 | 312 |
311 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 313 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
312 gfx::Rect GetBoundsInRootWindow() override; | 314 gfx::Rect GetBoundsInRootWindow() override; |
313 void LockCompositingSurface() override; | 315 void LockCompositingSurface() override; |
314 void UnlockCompositingSurface() override; | 316 void UnlockCompositingSurface() override; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 | 554 |
553 // Factory used to safely scope delayed calls to ShutdownHost(). | 555 // Factory used to safely scope delayed calls to ShutdownHost(). |
554 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 556 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
555 | 557 |
556 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 558 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
557 }; | 559 }; |
558 | 560 |
559 } // namespace content | 561 } // namespace content |
560 | 562 |
561 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 563 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |