| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 struct WebScreenInfo; | 48 struct WebScreenInfo; |
| 49 } | 49 } |
| 50 | 50 |
| 51 namespace content { | 51 namespace content { |
| 52 class BrowserAccessibilityManager; | 52 class BrowserAccessibilityManager; |
| 53 class SyntheticGesture; | 53 class SyntheticGesture; |
| 54 class SyntheticGestureTarget; | 54 class SyntheticGestureTarget; |
| 55 class WebCursor; | 55 class WebCursor; |
| 56 struct DidOverscrollParams; |
| 57 struct NativeWebKeyboardEvent; |
| 56 struct WebPluginGeometry; | 58 struct WebPluginGeometry; |
| 57 struct NativeWebKeyboardEvent; | |
| 58 | 59 |
| 59 // Basic implementation shared by concrete RenderWidgetHostView subclasses. | 60 // Basic implementation shared by concrete RenderWidgetHostView subclasses. |
| 60 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | 61 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
| 61 public IPC::Listener { | 62 public IPC::Listener { |
| 62 public: | 63 public: |
| 63 virtual ~RenderWidgetHostViewBase(); | 64 virtual ~RenderWidgetHostViewBase(); |
| 64 | 65 |
| 65 // RenderWidgetHostView implementation. | 66 // RenderWidgetHostView implementation. |
| 66 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; | 67 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; |
| 67 virtual bool GetBackgroundOpaque() OVERRIDE; | 68 virtual bool GetBackgroundOpaque() OVERRIDE; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 scoped_ptr<cc::CompositorFrame> frame) {} | 165 scoped_ptr<cc::CompositorFrame> frame) {} |
| 165 | 166 |
| 166 // Because the associated remote WebKit instance can asynchronously | 167 // Because the associated remote WebKit instance can asynchronously |
| 167 // prevent-default on a dispatched touch event, the touch events are queued in | 168 // prevent-default on a dispatched touch event, the touch events are queued in |
| 168 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 169 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| 169 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 170 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
| 170 // or ignored (when |ack_result| is CONSUMED). | 171 // or ignored (when |ack_result| is CONSUMED). |
| 171 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 172 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 172 InputEventAckState ack_result) {} | 173 InputEventAckState ack_result) {} |
| 173 | 174 |
| 175 virtual void DidOverscroll(const DidOverscrollParams& params) {} |
| 176 |
| 174 virtual void DidStopFlinging() {} | 177 virtual void DidStopFlinging() {} |
| 175 | 178 |
| 176 //---------------------------------------------------------------------------- | 179 //---------------------------------------------------------------------------- |
| 177 // The following static methods are implemented by each platform. | 180 // The following static methods are implemented by each platform. |
| 178 | 181 |
| 179 static void GetDefaultScreenInfo(blink::WebScreenInfo* results); | 182 static void GetDefaultScreenInfo(blink::WebScreenInfo* results); |
| 180 | 183 |
| 181 //---------------------------------------------------------------------------- | 184 //---------------------------------------------------------------------------- |
| 182 // The following pure virtual methods are implemented by derived classes. | 185 // The following pure virtual methods are implemented by derived classes. |
| 183 | 186 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 uint32 renderer_frame_number_; | 427 uint32 renderer_frame_number_; |
| 425 | 428 |
| 426 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 429 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
| 427 | 430 |
| 428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 431 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 429 }; | 432 }; |
| 430 | 433 |
| 431 } // namespace content | 434 } // namespace content |
| 432 | 435 |
| 433 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 436 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |