| 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 #include <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
| 35 struct AccessibilityHostMsg_EventParams; | 35 struct AccessibilityHostMsg_EventParams; | 
| 36 struct ViewHostMsg_SelectionBounds_Params; | 36 struct ViewHostMsg_SelectionBounds_Params; | 
| 37 struct ViewHostMsg_TextInputState_Params; | 37 struct ViewHostMsg_TextInputState_Params; | 
| 38 | 38 | 
| 39 namespace media { | 39 namespace media { | 
| 40 class VideoFrame; | 40 class VideoFrame; | 
| 41 } | 41 } | 
| 42 | 42 | 
| 43 namespace blink { | 43 namespace blink { | 
| 44 struct WebScreenInfo; | 44 struct WebScreenInfo; | 
|  | 45 class WebMouseEvent; | 
|  | 46 class WebMouseWheelEvent; | 
| 45 } | 47 } | 
| 46 | 48 | 
| 47 namespace content { | 49 namespace content { | 
| 48 class BrowserAccessibilityDelegate; | 50 class BrowserAccessibilityDelegate; | 
| 49 class BrowserAccessibilityManager; | 51 class BrowserAccessibilityManager; | 
| 50 class SyntheticGesture; | 52 class SyntheticGesture; | 
| 51 class SyntheticGestureTarget; | 53 class SyntheticGestureTarget; | 
| 52 class WebCursor; | 54 class WebCursor; | 
| 53 struct DidOverscrollParams; | 55 struct DidOverscrollParams; | 
| 54 struct NativeWebKeyboardEvent; | 56 struct NativeWebKeyboardEvent; | 
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 178   // enabled. | 180   // enabled. | 
| 179   virtual uint32_t GetSurfaceIdNamespace(); | 181   virtual uint32_t GetSurfaceIdNamespace(); | 
| 180 | 182 | 
| 181   // When there are multiple RenderWidgetHostViews for a single page, input | 183   // When there are multiple RenderWidgetHostViews for a single page, input | 
| 182   // events need to be targeted to the correct one for handling. The following | 184   // events need to be targeted to the correct one for handling. The following | 
| 183   // methods are invoked on the RenderWidgetHostView that should be able to | 185   // methods are invoked on the RenderWidgetHostView that should be able to | 
| 184   // properly handle the event (i.e. it has focus for keyboard events, or has | 186   // properly handle the event (i.e. it has focus for keyboard events, or has | 
| 185   // been identified by hit testing mouse, touch or gesture events). | 187   // been identified by hit testing mouse, touch or gesture events). | 
| 186   virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, | 188   virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, | 
| 187                                              gfx::Point* transformed_point); | 189                                              gfx::Point* transformed_point); | 
|  | 190   virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} | 
|  | 191   virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} | 
|  | 192   virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} | 
| 188 | 193 | 
| 189   //---------------------------------------------------------------------------- | 194   //---------------------------------------------------------------------------- | 
| 190   // The following static methods are implemented by each platform. | 195   // The following static methods are implemented by each platform. | 
| 191 | 196 | 
| 192   static void GetDefaultScreenInfo(blink::WebScreenInfo* results); | 197   static void GetDefaultScreenInfo(blink::WebScreenInfo* results); | 
| 193 | 198 | 
| 194   //---------------------------------------------------------------------------- | 199   //---------------------------------------------------------------------------- | 
| 195   // The following pure virtual methods are implemented by derived classes. | 200   // The following pure virtual methods are implemented by derived classes. | 
| 196 | 201 | 
| 197   // Perform all the initialization steps necessary for this object to represent | 202   // Perform all the initialization steps necessary for this object to represent | 
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 424   base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 429   base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 
| 425 | 430 | 
| 426   base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 431   base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 
| 427 | 432 | 
| 428   DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 433   DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 
| 429 }; | 434 }; | 
| 430 | 435 | 
| 431 }  // namespace content | 436 }  // namespace content | 
| 432 | 437 | 
| 433 #endif  // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 438 #endif  // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 
| OLD | NEW | 
|---|