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_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
7 | 7 |
8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
10 #endif | 10 #endif |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 bool scroll_down, int pixels_to_scroll, int mouse_event_x, | 72 bool scroll_down, int pixels_to_scroll, int mouse_event_x, |
73 int mouse_event_y) OVERRIDE; | 73 int mouse_event_y) OVERRIDE; |
74 virtual bool CanSubscribeFrame() const OVERRIDE; | 74 virtual bool CanSubscribeFrame() const OVERRIDE; |
75 virtual void BeginFrameSubscription( | 75 virtual void BeginFrameSubscription( |
76 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 76 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; |
77 virtual void EndFrameSubscription() OVERRIDE; | 77 virtual void EndFrameSubscription() OVERRIDE; |
78 virtual void OnSwapCompositorFrame( | 78 virtual void OnSwapCompositorFrame( |
79 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE {} | 79 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE {} |
80 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 80 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
81 gfx::Vector2dF current_fling_velocity) OVERRIDE; | 81 gfx::Vector2dF current_fling_velocity) OVERRIDE; |
| 82 virtual uint32 RendererFrameNumber() OVERRIDE; |
| 83 virtual void DidReceiveRendererFrame() OVERRIDE; |
82 | 84 |
83 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); | 85 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); |
84 | 86 |
85 // Notification that a resize or move session ended on the native widget. | 87 // Notification that a resize or move session ended on the native widget. |
86 void UpdateScreenInfo(gfx::NativeView view); | 88 void UpdateScreenInfo(gfx::NativeView view); |
87 | 89 |
88 #if defined(OS_WIN) | 90 #if defined(OS_WIN) |
89 // The callback that DetachPluginsHelper calls for each child window. Call | 91 // The callback that DetachPluginsHelper calls for each child window. Call |
90 // this directly if you want to do custom filtering on plugin windows first. | 92 // this directly if you want to do custom filtering on plugin windows first. |
91 static void DetachPluginWindowsCallback(HWND window); | 93 static void DetachPluginWindowsCallback(HWND window); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 protected: | 143 protected: |
142 // The scale factor of the display the renderer is currently on. | 144 // The scale factor of the display the renderer is currently on. |
143 float current_device_scale_factor_; | 145 float current_device_scale_factor_; |
144 | 146 |
145 private: | 147 private: |
146 // Manager of the tree representation of the WebKit render tree. | 148 // Manager of the tree representation of the WebKit render tree. |
147 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 149 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
148 | 150 |
149 gfx::Rect current_display_area_; | 151 gfx::Rect current_display_area_; |
150 | 152 |
| 153 uint32 renderer_frame_number_; |
| 154 |
151 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 155 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
152 }; | 156 }; |
153 | 157 |
154 } // namespace content | 158 } // namespace content |
155 | 159 |
156 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 160 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |