OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WIN_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CONTENT_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> |
11 #include <atlcrack.h> | 11 #include <atlcrack.h> |
12 #include <atlmisc.h> | 12 #include <atlmisc.h> |
13 | 13 |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
19 #include "base/task.h" | 19 #include "base/task.h" |
20 #include "base/time.h" | 20 #include "base/time.h" |
21 #include "base/win/scoped_comptr.h" | 21 #include "base/win/scoped_comptr.h" |
22 #include "content/browser/accessibility/browser_accessibility_manager.h" | 22 #include "content/browser/accessibility/browser_accessibility_manager.h" |
23 #include "content/browser/renderer_host/render_widget_host_view.h" | 23 #include "content/browser/renderer_host/render_widget_host_view.h" |
24 #include "content/common/content_export.h" | 24 #include "content/common/content_export.h" |
25 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
26 #include "content/public/browser/notification_registrar.h" | 26 #include "content/public/browser/notification_registrar.h" |
27 #include "ui/base/win/ime_input.h" | 27 #include "ui/base/win/ime_input.h" |
28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
29 #include "ui/gfx/point.h" | 29 #include "ui/gfx/point.h" |
| 30 #include "ui/gfx/surface/accelerated_surface_win.h" |
30 #include "webkit/glue/webcursor.h" | 31 #include "webkit/glue/webcursor.h" |
31 | 32 |
32 class BackingStore; | 33 class BackingStore; |
33 class RenderWidgetHost; | 34 class RenderWidgetHost; |
34 | 35 |
35 namespace gfx { | 36 namespace gfx { |
36 class Size; | 37 class Size; |
37 class Rect; | 38 class Rect; |
38 } | 39 } |
39 | 40 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 195 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
195 virtual void SetVisuallyDeemphasized(const SkColor* color, | 196 virtual void SetVisuallyDeemphasized(const SkColor* color, |
196 bool animate) OVERRIDE; | 197 bool animate) OVERRIDE; |
197 virtual void UnhandledWheelEvent( | 198 virtual void UnhandledWheelEvent( |
198 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 199 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
199 virtual void SetHasHorizontalScrollbar( | 200 virtual void SetHasHorizontalScrollbar( |
200 bool has_horizontal_scrollbar) OVERRIDE; | 201 bool has_horizontal_scrollbar) OVERRIDE; |
201 virtual void SetScrollOffsetPinning( | 202 virtual void SetScrollOffsetPinning( |
202 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 203 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
203 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; | 204 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; |
| 205 virtual void AcceleratedSurfaceBuffersSwapped( |
| 206 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 207 int gpu_host_id) OVERRIDE; |
204 virtual void OnAccessibilityNotifications( | 208 virtual void OnAccessibilityNotifications( |
205 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params | 209 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params |
206 ) OVERRIDE; | 210 ) OVERRIDE; |
207 virtual bool LockMouse() OVERRIDE; | 211 virtual bool LockMouse() OVERRIDE; |
208 virtual void UnlockMouse() OVERRIDE; | 212 virtual void UnlockMouse() OVERRIDE; |
209 | 213 |
210 // Implementation of content::NotificationObserver: | 214 // Implementation of content::NotificationObserver: |
211 virtual void Observe(int type, | 215 virtual void Observe(int type, |
212 const content::NotificationSource& source, | 216 const content::NotificationSource& source, |
213 const content::NotificationDetails& details) OVERRIDE; | 217 const content::NotificationDetails& details) OVERRIDE; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 LRESULT OnReconvertString(RECONVERTSTRING* reconv); | 340 LRESULT OnReconvertString(RECONVERTSTRING* reconv); |
337 | 341 |
338 // The associated Model. While |this| is being Destroyed, | 342 // The associated Model. While |this| is being Destroyed, |
339 // |render_widget_host_| is NULL and the Windows message loop is run one last | 343 // |render_widget_host_| is NULL and the Windows message loop is run one last |
340 // time. Message handlers must check for a NULL |render_widget_host_|. | 344 // time. Message handlers must check for a NULL |render_widget_host_|. |
341 RenderWidgetHost* render_widget_host_; | 345 RenderWidgetHost* render_widget_host_; |
342 | 346 |
343 // When we are doing accelerated compositing | 347 // When we are doing accelerated compositing |
344 HWND compositor_host_window_; | 348 HWND compositor_host_window_; |
345 | 349 |
| 350 // Presents a texture received from another process to the compositing |
| 351 // window. |
| 352 scoped_refptr<AcceleratedSurface> accelerated_surface_; |
| 353 |
346 // true if the compositor host window must be hidden after the | 354 // true if the compositor host window must be hidden after the |
347 // software renderered view is updated. | 355 // software renderered view is updated. |
348 bool hide_compositor_window_at_next_paint_; | 356 bool hide_compositor_window_at_next_paint_; |
349 | 357 |
350 // The cursor for the page. This is passed up from the renderer. | 358 // The cursor for the page. This is passed up from the renderer. |
351 WebCursor current_cursor_; | 359 WebCursor current_cursor_; |
352 | 360 |
353 // Indicates if the page is loading. | 361 // Indicates if the page is loading. |
354 bool is_loading_; | 362 bool is_loading_; |
355 | 363 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 // duplicate lbutton down messages to the renderer. | 494 // duplicate lbutton down messages to the renderer. |
487 bool ignore_next_lbutton_message_at_same_location; | 495 bool ignore_next_lbutton_message_at_same_location; |
488 // The location of the last WM_POINTERDOWN message. We ignore the subsequent | 496 // The location of the last WM_POINTERDOWN message. We ignore the subsequent |
489 // lbutton down only if the locations match. | 497 // lbutton down only if the locations match. |
490 LPARAM last_pointer_down_location_; | 498 LPARAM last_pointer_down_location_; |
491 | 499 |
492 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 500 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
493 }; | 501 }; |
494 | 502 |
495 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 503 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |