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_WIN_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 virtual gfx::Rect GetViewBounds() const; | 147 virtual gfx::Rect GetViewBounds() const; |
148 virtual void UpdateCursor(const WebCursor& cursor); | 148 virtual void UpdateCursor(const WebCursor& cursor); |
149 virtual void SetIsLoading(bool is_loading); | 149 virtual void SetIsLoading(bool is_loading); |
150 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType type, | 150 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType type, |
151 const gfx::Rect& caret_rect); | 151 const gfx::Rect& caret_rect); |
152 virtual void ImeCancelComposition(); | 152 virtual void ImeCancelComposition(); |
153 virtual void DidUpdateBackingStore( | 153 virtual void DidUpdateBackingStore( |
154 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 154 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
155 const std::vector<gfx::Rect>& copy_rects); | 155 const std::vector<gfx::Rect>& copy_rects); |
156 virtual void RenderViewGone(); | 156 virtual void RenderViewGone(); |
| 157 virtual void WillWmDestroy(); // called by TabContents before DestroyWindow |
157 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh); | 158 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh); |
158 virtual void Destroy(); | 159 virtual void Destroy(); |
159 virtual void SetTooltipText(const std::wstring& tooltip_text); | 160 virtual void SetTooltipText(const std::wstring& tooltip_text); |
160 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 161 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
161 virtual void SetBackground(const SkBitmap& background); | 162 virtual void SetBackground(const SkBitmap& background); |
162 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 163 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
163 virtual void SetVisuallyDeemphasized(bool deemphasized); | 164 virtual void SetVisuallyDeemphasized(bool deemphasized); |
| 165 |
| 166 virtual gfx::PluginWindowHandle CreateCompositorHostWindow(); |
| 167 virtual void ShowCompositorHostWindow(bool show); |
| 168 |
164 virtual void OnAccessibilityNotifications( | 169 virtual void OnAccessibilityNotifications( |
165 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); | 170 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); |
166 | 171 |
167 // Implementation of NotificationObserver: | 172 // Implementation of NotificationObserver: |
168 virtual void Observe(NotificationType type, | 173 virtual void Observe(NotificationType type, |
169 const NotificationSource& source, | 174 const NotificationSource& source, |
170 const NotificationDetails& details); | 175 const NotificationDetails& details); |
171 | 176 |
172 // Implementation of BrowserAccessibilityDelegate: | 177 // Implementation of BrowserAccessibilityDelegate: |
173 virtual void SetAccessibilityFocus(int acc_obj_id); | 178 virtual void SetAccessibilityFocus(int acc_obj_id); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 263 |
259 // Create an intermediate window between the given HWND and its parent. | 264 // Create an intermediate window between the given HWND and its parent. |
260 HWND ReparentWindow(HWND window); | 265 HWND ReparentWindow(HWND window); |
261 | 266 |
262 // Whether the window should be activated. | 267 // Whether the window should be activated. |
263 bool IsActivatable() const; | 268 bool IsActivatable() const; |
264 | 269 |
265 // The associated Model. | 270 // The associated Model. |
266 RenderWidgetHost* render_widget_host_; | 271 RenderWidgetHost* render_widget_host_; |
267 | 272 |
| 273 // When we are doing accelerated compositing |
| 274 HWND compositor_host_window_; |
| 275 |
268 // The cursor for the page. This is passed up from the renderer. | 276 // The cursor for the page. This is passed up from the renderer. |
269 WebCursor current_cursor_; | 277 WebCursor current_cursor_; |
270 | 278 |
271 // Indicates if the page is loading. | 279 // Indicates if the page is loading. |
272 bool is_loading_; | 280 bool is_loading_; |
273 | 281 |
274 // true if we are currently tracking WM_MOUSEEXIT messages. | 282 // true if we are currently tracking WM_MOUSEEXIT messages. |
275 bool track_mouse_leave_; | 283 bool track_mouse_leave_; |
276 | 284 |
277 // Wrapper class for IME input. | 285 // Wrapper class for IME input. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 // method. | 351 // method. |
344 WebKit::WebTextInputType text_input_type_; | 352 WebKit::WebTextInputType text_input_type_; |
345 | 353 |
346 ScopedVector<app::ViewProp> props_; | 354 ScopedVector<app::ViewProp> props_; |
347 scoped_ptr<app::win::ScopedProp> renderer_id_prop_; | 355 scoped_ptr<app::win::ScopedProp> renderer_id_prop_; |
348 | 356 |
349 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 357 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
350 }; | 358 }; |
351 | 359 |
352 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 360 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |