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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual SyntheticGesture* CreatePinchGesture( | 77 virtual SyntheticGesture* CreatePinchGesture( |
78 bool zoom_in, int pixels_to_move, int anchor_x, | 78 bool zoom_in, int pixels_to_move, int anchor_x, |
79 int anchor_y) OVERRIDE; | 79 int anchor_y) OVERRIDE; |
80 virtual bool CanSubscribeFrame() const OVERRIDE; | 80 virtual bool CanSubscribeFrame() const OVERRIDE; |
81 virtual void BeginFrameSubscription( | 81 virtual void BeginFrameSubscription( |
82 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 82 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; |
83 virtual void EndFrameSubscription() OVERRIDE; | 83 virtual void EndFrameSubscription() OVERRIDE; |
84 virtual void OnSwapCompositorFrame( | 84 virtual void OnSwapCompositorFrame( |
85 uint32 output_surface_id, | 85 uint32 output_surface_id, |
86 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE {} | 86 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE {} |
| 87 virtual void ResizeCompositingSurface(const gfx::Size&) OVERRIDE {} |
87 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 88 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
88 gfx::Vector2dF current_fling_velocity) OVERRIDE; | 89 gfx::Vector2dF current_fling_velocity) OVERRIDE; |
89 virtual uint32 RendererFrameNumber() OVERRIDE; | 90 virtual uint32 RendererFrameNumber() OVERRIDE; |
90 virtual void DidReceiveRendererFrame() OVERRIDE; | 91 virtual void DidReceiveRendererFrame() OVERRIDE; |
91 | 92 |
92 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); | 93 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); |
93 | 94 |
94 // Notification that a resize or move session ended on the native widget. | 95 // Notification that a resize or move session ended on the native widget. |
95 void UpdateScreenInfo(gfx::NativeView view); | 96 void UpdateScreenInfo(gfx::NativeView view); |
96 | 97 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 gfx::Rect current_display_area_; | 163 gfx::Rect current_display_area_; |
163 | 164 |
164 uint32 renderer_frame_number_; | 165 uint32 renderer_frame_number_; |
165 | 166 |
166 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 167 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
167 }; | 168 }; |
168 | 169 |
169 } // namespace content | 170 } // namespace content |
170 | 171 |
171 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 172 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |