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