| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "ui/aura/client/cursor_client_observer.h" | 32 #include "ui/aura/client/cursor_client_observer.h" |
| 33 #include "ui/aura/client/focus_change_observer.h" | 33 #include "ui/aura/client/focus_change_observer.h" |
| 34 #include "ui/aura/window_delegate.h" | 34 #include "ui/aura/window_delegate.h" |
| 35 #include "ui/aura/window_tree_host_observer.h" | 35 #include "ui/aura/window_tree_host_observer.h" |
| 36 #include "ui/base/ime/text_input_client.h" | 36 #include "ui/base/ime/text_input_client.h" |
| 37 #include "ui/compositor/compositor.h" | 37 #include "ui/compositor/compositor.h" |
| 38 #include "ui/compositor/compositor_observer.h" | 38 #include "ui/compositor/compositor_observer.h" |
| 39 #include "ui/compositor/compositor_vsync_manager.h" | 39 #include "ui/compositor/compositor_vsync_manager.h" |
| 40 #include "ui/compositor/layer_owner_delegate.h" | 40 #include "ui/compositor/layer_owner_delegate.h" |
| 41 #include "ui/gfx/display_observer.h" | 41 #include "ui/gfx/display_observer.h" |
| 42 #include "ui/gfx/insets.h" |
| 42 #include "ui/gfx/rect.h" | 43 #include "ui/gfx/rect.h" |
| 43 #include "ui/wm/public/activation_change_observer.h" | 44 #include "ui/wm/public/activation_change_observer.h" |
| 44 #include "ui/wm/public/activation_delegate.h" | 45 #include "ui/wm/public/activation_delegate.h" |
| 45 | 46 |
| 46 namespace aura { | 47 namespace aura { |
| 47 class WindowTracker; | 48 class WindowTracker; |
| 48 namespace client { | 49 namespace client { |
| 49 class ScopedTooltipDisabler; | 50 class ScopedTooltipDisabler; |
| 50 } | 51 } |
| 51 } | 52 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 151 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 151 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 152 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
| 152 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 153 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
| 153 virtual bool HasFocus() const OVERRIDE; | 154 virtual bool HasFocus() const OVERRIDE; |
| 154 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; | 155 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; |
| 155 virtual void Show() OVERRIDE; | 156 virtual void Show() OVERRIDE; |
| 156 virtual void Hide() OVERRIDE; | 157 virtual void Hide() OVERRIDE; |
| 157 virtual bool IsShowing() OVERRIDE; | 158 virtual bool IsShowing() OVERRIDE; |
| 158 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 159 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
| 159 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 160 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
| 161 virtual gfx::SizeF GetVisibleViewportSize() const OVERRIDE; |
| 162 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; |
| 160 | 163 |
| 161 // Overridden from RenderWidgetHostViewPort: | 164 // Overridden from RenderWidgetHostViewPort: |
| 162 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 165 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 163 const gfx::Rect& pos) OVERRIDE; | 166 const gfx::Rect& pos) OVERRIDE; |
| 164 virtual void InitAsFullscreen( | 167 virtual void InitAsFullscreen( |
| 165 RenderWidgetHostView* reference_host_view) OVERRIDE; | 168 RenderWidgetHostView* reference_host_view) OVERRIDE; |
| 166 virtual void WasShown() OVERRIDE; | 169 virtual void WasShown() OVERRIDE; |
| 167 virtual void WasHidden() OVERRIDE; | 170 virtual void WasHidden() OVERRIDE; |
| 168 virtual void MovePluginWindows( | 171 virtual void MovePluginWindows( |
| 169 const gfx::Vector2d& scroll_offset, | 172 const gfx::Vector2d& scroll_offset, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 bool has_horizontal_scrollbar) OVERRIDE; | 236 bool has_horizontal_scrollbar) OVERRIDE; |
| 234 virtual void SetScrollOffsetPinning( | 237 virtual void SetScrollOffsetPinning( |
| 235 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 238 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
| 236 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 239 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
| 237 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; | 240 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; |
| 238 virtual bool LockMouse() OVERRIDE; | 241 virtual bool LockMouse() OVERRIDE; |
| 239 virtual void UnlockMouse() OVERRIDE; | 242 virtual void UnlockMouse() OVERRIDE; |
| 240 virtual void OnSwapCompositorFrame( | 243 virtual void OnSwapCompositorFrame( |
| 241 uint32 output_surface_id, | 244 uint32 output_surface_id, |
| 242 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; | 245 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; |
| 246 |
| 243 #if defined(OS_WIN) | 247 #if defined(OS_WIN) |
| 244 virtual void SetParentNativeViewAccessible( | 248 virtual void SetParentNativeViewAccessible( |
| 245 gfx::NativeViewAccessible accessible_parent) OVERRIDE; | 249 gfx::NativeViewAccessible accessible_parent) OVERRIDE; |
| 246 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; | 250 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; |
| 247 #endif | 251 #endif |
| 248 | 252 |
| 249 // Overridden from ui::TextInputClient: | 253 // Overridden from ui::TextInputClient: |
| 250 virtual void SetCompositionText( | 254 virtual void SetCompositionText( |
| 251 const ui::CompositionText& composition) OVERRIDE; | 255 const ui::CompositionText& composition) OVERRIDE; |
| 252 virtual void ConfirmCompositionText() OVERRIDE; | 256 virtual void ConfirmCompositionText() OVERRIDE; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, OutputSurfaceIdChange); | 402 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, OutputSurfaceIdChange); |
| 399 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 403 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 400 DiscardDelegatedFrames); | 404 DiscardDelegatedFrames); |
| 401 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 405 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 402 DiscardDelegatedFramesWithLocking); | 406 DiscardDelegatedFramesWithLocking); |
| 403 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SoftwareDPIChange); | 407 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SoftwareDPIChange); |
| 404 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 408 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 405 UpdateCursorIfOverSelf); | 409 UpdateCursorIfOverSelf); |
| 406 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest, | 410 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest, |
| 407 DestroyedAfterCopyRequest); | 411 DestroyedAfterCopyRequest); |
| 412 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 413 VisibleViewportTest); |
| 408 | 414 |
| 409 class WindowObserver; | 415 class WindowObserver; |
| 410 friend class WindowObserver; | 416 friend class WindowObserver; |
| 411 | 417 |
| 412 // Overridden from ImageTransportFactoryObserver: | 418 // Overridden from ImageTransportFactoryObserver: |
| 413 virtual void OnLostResources() OVERRIDE; | 419 virtual void OnLostResources() OVERRIDE; |
| 414 | 420 |
| 415 // Overridden from BrowserAccessibilityDelegate: | 421 // Overridden from BrowserAccessibilityDelegate: |
| 416 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; | 422 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; |
| 417 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; | 423 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 723 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
| 718 std::vector<scoped_refptr<OwnedMailbox> > idle_frame_subscriber_textures_; | 724 std::vector<scoped_refptr<OwnedMailbox> > idle_frame_subscriber_textures_; |
| 719 std::set<OwnedMailbox*> active_frame_subscriber_textures_; | 725 std::set<OwnedMailbox*> active_frame_subscriber_textures_; |
| 720 | 726 |
| 721 // YUV readback pipeline. | 727 // YUV readback pipeline. |
| 722 scoped_ptr<content::ReadbackYUVInterface> | 728 scoped_ptr<content::ReadbackYUVInterface> |
| 723 yuv_readback_pipeline_; | 729 yuv_readback_pipeline_; |
| 724 | 730 |
| 725 TouchEditingClient* touch_editing_client_; | 731 TouchEditingClient* touch_editing_client_; |
| 726 | 732 |
| 733 gfx::Insets root_window_insets_; |
| 734 |
| 727 std::vector<ui::LatencyInfo> software_latency_info_; | 735 std::vector<ui::LatencyInfo> software_latency_info_; |
| 728 | 736 |
| 729 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 737 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
| 730 | 738 |
| 731 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; | 739 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; |
| 732 | 740 |
| 733 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 741 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 734 | 742 |
| 735 #if defined(OS_WIN) | 743 #if defined(OS_WIN) |
| 736 // The LegacyRenderWidgetHostHWND class provides a dummy HWND which is used | 744 // The LegacyRenderWidgetHostHWND class provides a dummy HWND which is used |
| 737 // for accessibility, as the container for windowless plugins like | 745 // for accessibility, as the container for windowless plugins like |
| 738 // Flash/Silverlight, etc and for legacy drivers for trackpoints/trackpads, | 746 // Flash/Silverlight, etc and for legacy drivers for trackpoints/trackpads, |
| 739 // etc. | 747 // etc. |
| 740 scoped_ptr<content::LegacyRenderWidgetHostHWND> | 748 scoped_ptr<content::LegacyRenderWidgetHostHWND> |
| 741 legacy_render_widget_host_HWND_; | 749 legacy_render_widget_host_HWND_; |
| 742 #endif | 750 #endif |
| 743 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 751 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 744 }; | 752 }; |
| 745 | 753 |
| 746 } // namespace content | 754 } // namespace content |
| 747 | 755 |
| 748 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 756 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |