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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 background_ = background; | 245 background_ = background; |
246 } | 246 } |
247 const SkBitmap& background() const { return background_; } | 247 const SkBitmap& background() const { return background_; } |
248 | 248 |
249 // Returns true if the native view, |native_view|, is contained within in the | 249 // Returns true if the native view, |native_view|, is contained within in the |
250 // widget associated with this RenderWidgetHostView. | 250 // widget associated with this RenderWidgetHostView. |
251 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; | 251 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; |
252 | 252 |
253 virtual void UpdateAccessibilityTree( | 253 virtual void UpdateAccessibilityTree( |
254 const webkit_glue::WebAccessibility& tree) { } | 254 const webkit_glue::WebAccessibility& tree) { } |
255 virtual void OnAccessibilityFocusChange(int acc_obj_id) { } | |
256 virtual void OnAccessibilityNotifications( | 255 virtual void OnAccessibilityNotifications( |
257 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { | 256 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { |
258 } | 257 } |
259 | 258 |
260 protected: | 259 protected: |
261 // Interface class only, do not construct. | 260 // Interface class only, do not construct. |
262 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {} | 261 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {} |
263 | 262 |
264 // Whether this view is a popup and what kind of popup it is (select, | 263 // Whether this view is a popup and what kind of popup it is (select, |
265 // autofill...). | 264 // autofill...). |
266 WebKit::WebPopupType popup_type_; | 265 WebKit::WebPopupType popup_type_; |
267 | 266 |
268 // A custom background to paint behind the web content. This will be tiled | 267 // A custom background to paint behind the web content. This will be tiled |
269 // horizontally. Can be null, in which case we fall back to painting white. | 268 // horizontally. Can be null, in which case we fall back to painting white. |
270 SkBitmap background_; | 269 SkBitmap background_; |
271 | 270 |
272 private: | 271 private: |
273 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 272 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
274 }; | 273 }; |
275 | 274 |
276 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 275 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |