| 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> |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "app/surface/transport_dib.h" | 16 #include "app/surface/transport_dib.h" |
| 17 #include "gfx/native_widget_types.h" | 17 #include "gfx/native_widget_types.h" |
| 18 #include "gfx/rect.h" |
| 18 #include "third_party/skia/include/core/SkBitmap.h" | 19 #include "third_party/skia/include/core/SkBitmap.h" |
| 19 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" |
| 20 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" |
| 21 | 22 |
| 22 namespace gfx { | 23 namespace gfx { |
| 23 class Rect; | 24 class Rect; |
| 24 class Size; | 25 class Size; |
| 25 } | 26 } |
| 26 namespace IPC { | 27 namespace IPC { |
| 27 class Message; | 28 class Message; |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // Returns true if the native view, |native_view|, is contained within in the | 254 // Returns true if the native view, |native_view|, is contained within in the |
| 254 // widget associated with this RenderWidgetHostView. | 255 // widget associated with this RenderWidgetHostView. |
| 255 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; | 256 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; |
| 256 | 257 |
| 257 virtual void UpdateAccessibilityTree( | 258 virtual void UpdateAccessibilityTree( |
| 258 const webkit_glue::WebAccessibility& tree) { } | 259 const webkit_glue::WebAccessibility& tree) { } |
| 259 virtual void OnAccessibilityNotifications( | 260 virtual void OnAccessibilityNotifications( |
| 260 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { | 261 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { |
| 261 } | 262 } |
| 262 | 263 |
| 264 gfx::Rect reserved_contents_rect() const { |
| 265 return reserved_rect_; |
| 266 } |
| 267 void set_reserved_contents_rect(const gfx::Rect& reserved_rect) { |
| 268 reserved_rect_ = reserved_rect; |
| 269 } |
| 270 |
| 263 protected: | 271 protected: |
| 264 // Interface class only, do not construct. | 272 // Interface class only, do not construct. |
| 265 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {} | 273 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {} |
| 266 | 274 |
| 267 // Whether this view is a popup and what kind of popup it is (select, | 275 // Whether this view is a popup and what kind of popup it is (select, |
| 268 // autofill...). | 276 // autofill...). |
| 269 WebKit::WebPopupType popup_type_; | 277 WebKit::WebPopupType popup_type_; |
| 270 | 278 |
| 271 // A custom background to paint behind the web content. This will be tiled | 279 // A custom background to paint behind the web content. This will be tiled |
| 272 // horizontally. Can be null, in which case we fall back to painting white. | 280 // horizontally. Can be null, in which case we fall back to painting white. |
| 273 SkBitmap background_; | 281 SkBitmap background_; |
| 274 | 282 |
| 283 // The current reserved area in view coordinates where contents should not be |
| 284 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 285 gfx::Rect reserved_rect_; |
| 286 |
| 275 private: | 287 private: |
| 276 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 288 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 277 }; | 289 }; |
| 278 | 290 |
| 279 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 291 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |