| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_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 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); | 64 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); |
| 65 | 65 |
| 66 // Notification that a resize or move session ended on the native widget. | 66 // Notification that a resize or move session ended on the native widget. |
| 67 void UpdateScreenInfo(); | 67 void UpdateScreenInfo(); |
| 68 | 68 |
| 69 protected: | 69 protected: |
| 70 // Interface class only, do not construct. | 70 // Interface class only, do not construct. |
| 71 RenderWidgetHostViewBase(); | 71 RenderWidgetHostViewBase(); |
| 72 | 72 |
| 73 #if defined(OS_WIN) |
| 74 // Shared implementation of MovePluginWindows for use by win and aura/wina. |
| 75 static void MovePluginWindowsHelper( |
| 76 HWND parent, |
| 77 const std::vector<webkit::npapi::WebPluginGeometry>& moves); |
| 78 |
| 79 static void PaintPluginWindowsHelper( |
| 80 HWND parent, |
| 81 const gfx::Rect& damaged_screen_rect); |
| 82 #endif |
| 83 |
| 73 // Whether this view is a popup and what kind of popup it is (select, | 84 // Whether this view is a popup and what kind of popup it is (select, |
| 74 // autofill...). | 85 // autofill...). |
| 75 WebKit::WebPopupType popup_type_; | 86 WebKit::WebPopupType popup_type_; |
| 76 | 87 |
| 77 // A custom background to paint behind the web content. This will be tiled | 88 // A custom background to paint behind the web content. This will be tiled |
| 78 // horizontally. Can be null, in which case we fall back to painting white. | 89 // horizontally. Can be null, in which case we fall back to painting white. |
| 79 SkBitmap background_; | 90 SkBitmap background_; |
| 80 | 91 |
| 81 // While the mouse is locked, the cursor is hidden from the user. Mouse events | 92 // While the mouse is locked, the cursor is hidden from the user. Mouse events |
| 82 // are still generated. However, the position they report is the last known | 93 // are still generated. However, the position they report is the last known |
| (...skipping 21 matching lines...) Expand all Loading... |
| 104 | 115 |
| 105 gfx::Rect current_display_area_; | 116 gfx::Rect current_display_area_; |
| 106 float current_device_scale_factor_; | 117 float current_device_scale_factor_; |
| 107 | 118 |
| 108 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 119 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 109 }; | 120 }; |
| 110 | 121 |
| 111 } // namespace content | 122 } // namespace content |
| 112 | 123 |
| 113 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 124 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |