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 | 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 |
11 | 11 |
12 #include "app/surface/transport_dib.h" | 12 #include "app/surface/transport_dib.h" |
13 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
14 #include "gfx/native_widget_types.h" | 14 #include "gfx/native_widget_types.h" |
15 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
16 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" |
17 #include "webkit/glue/plugins/webplugin.h" | 17 #include "webkit/glue/plugins/webplugin.h" |
18 #include "webkit/glue/webaccessibility.h" | |
19 | 18 |
20 namespace gfx { | 19 namespace gfx { |
21 class Rect; | 20 class Rect; |
22 class Size; | 21 class Size; |
23 } | 22 } |
24 namespace IPC { | 23 namespace IPC { |
25 class Message; | 24 class Message; |
26 } | 25 } |
27 | 26 |
28 class BackingStore; | 27 class BackingStore; |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // the custom background for their platform. | 228 // the custom background for their platform. |
230 virtual void SetBackground(const SkBitmap& background) { | 229 virtual void SetBackground(const SkBitmap& background) { |
231 background_ = background; | 230 background_ = background; |
232 } | 231 } |
233 const SkBitmap& background() const { return background_; } | 232 const SkBitmap& background() const { return background_; } |
234 | 233 |
235 // Returns true if the native view, |native_view|, is contained within in the | 234 // Returns true if the native view, |native_view|, is contained within in the |
236 // widget associated with this RenderWidgetHostView. | 235 // widget associated with this RenderWidgetHostView. |
237 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; | 236 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; |
238 | 237 |
239 virtual void UpdateAccessibilityTree( | |
240 const webkit_glue::WebAccessibility& tree) { } | |
241 virtual void OnAccessibilityFocusChange(int acc_obj_id) { } | |
242 virtual void OnAccessibilityObjectStateChange(int acc_obj_id) { } | |
243 | |
244 protected: | 238 protected: |
245 // Interface class only, do not construct. | 239 // Interface class only, do not construct. |
246 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {} | 240 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {} |
247 | 241 |
248 // Whether this view is a popup and what kind of popup it is (select, | 242 // Whether this view is a popup and what kind of popup it is (select, |
249 // autofill...). | 243 // autofill...). |
250 WebKit::WebPopupType popup_type_; | 244 WebKit::WebPopupType popup_type_; |
251 | 245 |
252 // A custom background to paint behind the web content. This will be tiled | 246 // A custom background to paint behind the web content. This will be tiled |
253 // horizontally. Can be null, in which case we fall back to painting white. | 247 // horizontally. Can be null, in which case we fall back to painting white. |
254 SkBitmap background_; | 248 SkBitmap background_; |
255 | 249 |
256 private: | 250 private: |
257 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 251 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
258 }; | 252 }; |
259 | 253 |
260 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 254 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |