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