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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 namespace media { | 43 namespace media { |
44 class VideoFrame; | 44 class VideoFrame; |
45 } | 45 } |
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 BrowserAccessibilityDelegate; |
52 class BrowserAccessibilityManager; | 53 class BrowserAccessibilityManager; |
53 class SyntheticGesture; | 54 class SyntheticGesture; |
54 class SyntheticGestureTarget; | 55 class SyntheticGestureTarget; |
55 class WebCursor; | 56 class WebCursor; |
56 struct WebPluginGeometry; | 57 struct WebPluginGeometry; |
57 struct NativeWebKeyboardEvent; | 58 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 { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Create a platform specific SyntheticGestureTarget implementation that will | 143 // Create a platform specific SyntheticGestureTarget implementation that will |
143 // be used to inject synthetic input events. | 144 // be used to inject synthetic input events. |
144 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget(); | 145 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget(); |
145 | 146 |
146 // Return true if frame subscription is supported on this platform. | 147 // Return true if frame subscription is supported on this platform. |
147 virtual bool CanSubscribeFrame() const; | 148 virtual bool CanSubscribeFrame() const; |
148 | 149 |
149 // Create a BrowserAccessibilityManager for this view if it's possible to | 150 // Create a BrowserAccessibilityManager for this view if it's possible to |
150 // create one and if one doesn't exist already. Some ports may not create | 151 // create one and if one doesn't exist already. Some ports may not create |
151 // one depending on the current state. | 152 // one depending on the current state. |
152 virtual void CreateBrowserAccessibilityManagerIfNeeded(); | 153 virtual void CreateBrowserAccessibilityManagerIfNeeded( |
| 154 BrowserAccessibilityDelegate* delegate); |
153 | 155 |
154 virtual void OnAccessibilitySetFocus(int acc_obj_id); | 156 virtual void OnAccessibilitySetFocus(int acc_obj_id); |
155 virtual void AccessibilityShowMenu(int acc_obj_id); | 157 virtual void AccessibilityShowMenu(int acc_obj_id); |
156 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds); | 158 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds); |
157 | 159 |
158 virtual SkBitmap::Config PreferredReadbackFormat(); | 160 virtual SkBitmap::Config PreferredReadbackFormat(); |
159 | 161 |
160 // Informs that the focused DOM node has changed. | 162 // Informs that the focused DOM node has changed. |
161 virtual void FocusedNodeChanged(bool is_editable_node) {} | 163 virtual void FocusedNodeChanged(bool is_editable_node) {} |
162 | 164 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 uint32 renderer_frame_number_; | 427 uint32 renderer_frame_number_; |
426 | 428 |
427 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 429 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
428 | 430 |
429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 431 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
430 }; | 432 }; |
431 | 433 |
432 } // namespace content | 434 } // namespace content |
433 | 435 |
434 #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 |