OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
(...skipping 12 matching lines...) Expand all Loading... |
23 class Rect; | 23 class Rect; |
24 class Size; | 24 class Size; |
25 } | 25 } |
26 namespace IPC { | 26 namespace IPC { |
27 class Message; | 27 class Message; |
28 } | 28 } |
29 | 29 |
30 class BackingStore; | 30 class BackingStore; |
31 class RenderProcessHost; | 31 class RenderProcessHost; |
32 class RenderWidgetHost; | 32 class RenderWidgetHost; |
33 class VideoLayer; | |
34 class WebCursor; | 33 class WebCursor; |
35 struct NativeWebKeyboardEvent; | 34 struct NativeWebKeyboardEvent; |
36 struct ViewHostMsg_AccessibilityNotification_Params; | 35 struct ViewHostMsg_AccessibilityNotification_Params; |
37 | 36 |
38 namespace webkit_glue { | 37 namespace webkit_glue { |
39 struct WebAccessibility; | 38 struct WebAccessibility; |
40 struct WebPluginGeometry; | 39 struct WebPluginGeometry; |
41 } | 40 } |
42 | 41 |
43 // RenderWidgetHostView is an interface implemented by an object that acts as | 42 // RenderWidgetHostView is an interface implemented by an object that acts as |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // Notifies the View that the renderer text selection has changed. | 165 // Notifies the View that the renderer text selection has changed. |
167 virtual void SelectionChanged(const std::string& text) {} | 166 virtual void SelectionChanged(const std::string& text) {} |
168 | 167 |
169 // Tells the View whether the context menu is showing. This is used on Linux | 168 // Tells the View whether the context menu is showing. This is used on Linux |
170 // to suppress updates to webkit focus for the duration of the show. | 169 // to suppress updates to webkit focus for the duration of the show. |
171 virtual void ShowingContextMenu(bool showing) {} | 170 virtual void ShowingContextMenu(bool showing) {} |
172 | 171 |
173 // Allocate a backing store for this view | 172 // Allocate a backing store for this view |
174 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 173 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
175 | 174 |
176 // Allocate a video layer for this view. | |
177 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size) = 0; | |
178 | |
179 #if defined(OS_MACOSX) | 175 #if defined(OS_MACOSX) |
180 // Tells the view whether or not to accept first responder status. If |flag| | 176 // Tells the view whether or not to accept first responder status. If |flag| |
181 // is true, the view does not accept first responder status and instead | 177 // is true, the view does not accept first responder status and instead |
182 // manually becomes first responder when it receives a mouse down event. If | 178 // manually becomes first responder when it receives a mouse down event. If |
183 // |flag| is false, the view participates in the key-view chain as normal. | 179 // |flag| is false, the view participates in the key-view chain as normal. |
184 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0; | 180 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0; |
185 | 181 |
186 // Get the view's position on the screen. | 182 // Get the view's position on the screen. |
187 virtual gfx::Rect GetWindowRect() = 0; | 183 virtual gfx::Rect GetWindowRect() = 0; |
188 | 184 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 270 |
275 // A custom background to paint behind the web content. This will be tiled | 271 // A custom background to paint behind the web content. This will be tiled |
276 // horizontally. Can be null, in which case we fall back to painting white. | 272 // horizontally. Can be null, in which case we fall back to painting white. |
277 SkBitmap background_; | 273 SkBitmap background_; |
278 | 274 |
279 private: | 275 private: |
280 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 276 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
281 }; | 277 }; |
282 | 278 |
283 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 279 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |