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