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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 #endif | 94 #endif |
95 | 95 |
96 protected: | 96 protected: |
97 // Interface class only, do not construct. | 97 // Interface class only, do not construct. |
98 RenderWidgetHostViewBase(); | 98 RenderWidgetHostViewBase(); |
99 | 99 |
100 #if defined(OS_WIN) | 100 #if defined(OS_WIN) |
101 // Shared implementation of MovePluginWindows for use by win and aura/wina. | 101 // Shared implementation of MovePluginWindows for use by win and aura/wina. |
102 static void MovePluginWindowsHelper( | 102 static void MovePluginWindowsHelper( |
103 HWND parent, | 103 HWND parent, |
104 const std::vector<webkit::npapi::WebPluginGeometry>& moves); | 104 const std::vector<WebPluginGeometry>& moves); |
105 | 105 |
106 static void PaintPluginWindowsHelper( | 106 static void PaintPluginWindowsHelper( |
107 HWND parent, | 107 HWND parent, |
108 const gfx::Rect& damaged_screen_rect); | 108 const gfx::Rect& damaged_screen_rect); |
109 | 109 |
110 // Needs to be called before the HWND backing the view goes away to avoid | 110 // Needs to be called before the HWND backing the view goes away to avoid |
111 // crashes in Windowed plugins. | 111 // crashes in Windowed plugins. |
112 static void DetachPluginsHelper(HWND parent); | 112 static void DetachPluginsHelper(HWND parent); |
113 #endif | 113 #endif |
114 | 114 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 gfx::Rect current_display_area_; | 151 gfx::Rect current_display_area_; |
152 | 152 |
153 uint32 renderer_frame_number_; | 153 uint32 renderer_frame_number_; |
154 | 154 |
155 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 155 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
156 }; | 156 }; |
157 | 157 |
158 } // namespace content | 158 } // namespace content |
159 | 159 |
160 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 160 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |