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