| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 virtual void SetVisuallyDeemphasized(const SkColor* color, | 194 virtual void SetVisuallyDeemphasized(const SkColor* color, |
| 194 bool animate) OVERRIDE; | 195 bool animate) OVERRIDE; |
| 195 virtual void UnhandledWheelEvent( | 196 virtual void UnhandledWheelEvent( |
| 196 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 197 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
| 197 virtual void SetHasHorizontalScrollbar( | 198 virtual void SetHasHorizontalScrollbar( |
| 198 bool has_horizontal_scrollbar) OVERRIDE; | 199 bool has_horizontal_scrollbar) OVERRIDE; |
| 199 virtual void SetScrollOffsetPinning( | 200 virtual void SetScrollOffsetPinning( |
| 200 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 201 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
| 201 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; | 202 virtual gfx::PluginWindowHandle GetCompositingSurface() OVERRIDE; |
| 202 virtual void ShowCompositorHostWindow(bool show) OVERRIDE; | 203 virtual void ShowCompositorHostWindow(bool show) OVERRIDE; |
| 204 virtual void AcceleratedSurfaceBuffersSwapped( |
| 205 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 206 int gpu_host_id) OVERRIDE; |
| 203 virtual void OnAccessibilityNotifications( | 207 virtual void OnAccessibilityNotifications( |
| 204 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params | 208 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params |
| 205 ) OVERRIDE; | 209 ) OVERRIDE; |
| 206 virtual bool LockMouse() OVERRIDE; | 210 virtual bool LockMouse() OVERRIDE; |
| 207 virtual void UnlockMouse() OVERRIDE; | 211 virtual void UnlockMouse() OVERRIDE; |
| 208 | 212 |
| 209 // Implementation of content::NotificationObserver: | 213 // Implementation of content::NotificationObserver: |
| 210 virtual void Observe(int type, | 214 virtual void Observe(int type, |
| 211 const content::NotificationSource& source, | 215 const content::NotificationSource& source, |
| 212 const content::NotificationDetails& details) OVERRIDE; | 216 const content::NotificationDetails& details) OVERRIDE; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 LRESULT OnReconvertString(RECONVERTSTRING* reconv); | 337 LRESULT OnReconvertString(RECONVERTSTRING* reconv); |
| 334 | 338 |
| 335 // The associated Model. While |this| is being Destroyed, | 339 // The associated Model. While |this| is being Destroyed, |
| 336 // |render_widget_host_| is NULL and the Windows message loop is run one last | 340 // |render_widget_host_| is NULL and the Windows message loop is run one last |
| 337 // time. Message handlers must check for a NULL |render_widget_host_|. | 341 // time. Message handlers must check for a NULL |render_widget_host_|. |
| 338 RenderWidgetHost* render_widget_host_; | 342 RenderWidgetHost* render_widget_host_; |
| 339 | 343 |
| 340 // When we are doing accelerated compositing | 344 // When we are doing accelerated compositing |
| 341 HWND compositor_host_window_; | 345 HWND compositor_host_window_; |
| 342 | 346 |
| 347 // Presents a texture received from another process to the compositing |
| 348 // window. |
| 349 scoped_refptr<AcceleratedSurface> accelerated_surface_; |
| 350 |
| 343 // true if the compositor host window must be hidden after the | 351 // true if the compositor host window must be hidden after the |
| 344 // software renderered view is updated. | 352 // software renderered view is updated. |
| 345 bool hide_compositor_window_at_next_paint_; | 353 bool hide_compositor_window_at_next_paint_; |
| 346 | 354 |
| 347 // The cursor for the page. This is passed up from the renderer. | 355 // The cursor for the page. This is passed up from the renderer. |
| 348 WebCursor current_cursor_; | 356 WebCursor current_cursor_; |
| 349 | 357 |
| 350 // Indicates if the page is loading. | 358 // Indicates if the page is loading. |
| 351 bool is_loading_; | 359 bool is_loading_; |
| 352 | 360 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 // duplicate lbutton down messages to the renderer. | 454 // duplicate lbutton down messages to the renderer. |
| 447 bool ignore_next_lbutton_message_at_same_location; | 455 bool ignore_next_lbutton_message_at_same_location; |
| 448 // The location of the last WM_POINTERDOWN message. We ignore the subsequent | 456 // The location of the last WM_POINTERDOWN message. We ignore the subsequent |
| 449 // lbutton down only if the locations match. | 457 // lbutton down only if the locations match. |
| 450 LPARAM last_pointer_down_location_; | 458 LPARAM last_pointer_down_location_; |
| 451 | 459 |
| 452 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 460 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
| 453 }; | 461 }; |
| 454 | 462 |
| 455 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 463 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| OLD | NEW |