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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 public ui::LayerOwnerDelegate, | 92 public ui::LayerOwnerDelegate, |
93 public ui::TextInputClient, | 93 public ui::TextInputClient, |
94 public gfx::DisplayObserver, | 94 public gfx::DisplayObserver, |
95 public aura::WindowTreeHostObserver, | 95 public aura::WindowTreeHostObserver, |
96 public aura::WindowDelegate, | 96 public aura::WindowDelegate, |
97 public aura::client::ActivationDelegate, | 97 public aura::client::ActivationDelegate, |
98 public aura::client::ActivationChangeObserver, | 98 public aura::client::ActivationChangeObserver, |
99 public aura::client::FocusChangeObserver, | 99 public aura::client::FocusChangeObserver, |
100 public aura::client::CursorClientObserver, | 100 public aura::client::CursorClientObserver, |
101 public ImageTransportFactoryObserver, | 101 public ImageTransportFactoryObserver, |
102 public BrowserAccessibilityDelegate, | |
103 public DelegatedFrameEvictorClient, | 102 public DelegatedFrameEvictorClient, |
104 public base::SupportsWeakPtr<RenderWidgetHostViewAura>, | 103 public base::SupportsWeakPtr<RenderWidgetHostViewAura>, |
105 public cc::DelegatedFrameResourceCollectionClient { | 104 public cc::DelegatedFrameResourceCollectionClient { |
106 public: | 105 public: |
107 // Displays and controls touch editing elements such as selection handles. | 106 // Displays and controls touch editing elements such as selection handles. |
108 class TouchEditingClient { | 107 class TouchEditingClient { |
109 public: | 108 public: |
110 TouchEditingClient() {} | 109 TouchEditingClient() {} |
111 | 110 |
112 // Tells the client to start showing touch editing handles. | 111 // Tells the client to start showing touch editing handles. |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 DestroyedAfterCopyRequest); | 409 DestroyedAfterCopyRequest); |
411 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 410 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
412 VisibleViewportTest); | 411 VisibleViewportTest); |
413 | 412 |
414 class WindowObserver; | 413 class WindowObserver; |
415 friend class WindowObserver; | 414 friend class WindowObserver; |
416 | 415 |
417 // Overridden from ImageTransportFactoryObserver: | 416 // Overridden from ImageTransportFactoryObserver: |
418 virtual void OnLostResources() OVERRIDE; | 417 virtual void OnLostResources() OVERRIDE; |
419 | 418 |
420 // Overridden from BrowserAccessibilityDelegate: | |
421 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; | |
422 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; | |
423 virtual void AccessibilityScrollToMakeVisible( | |
424 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; | |
425 virtual void AccessibilityScrollToPoint( | |
426 int acc_obj_id, gfx::Point point) OVERRIDE; | |
427 virtual void AccessibilitySetTextSelection( | |
428 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; | |
429 virtual gfx::Point GetLastTouchEventLocation() const OVERRIDE; | |
430 virtual void FatalAccessibilityTreeError() OVERRIDE; | |
431 | |
432 void UpdateCursorIfOverSelf(); | 419 void UpdateCursorIfOverSelf(); |
433 bool ShouldSkipFrame(gfx::Size size_in_dip) const; | 420 bool ShouldSkipFrame(gfx::Size size_in_dip) const; |
434 | 421 |
435 // Set the bounds of the window and handle size changes. Assumes the caller | 422 // Set the bounds of the window and handle size changes. Assumes the caller |
436 // has already adjusted the origin of |rect| to conform to whatever coordinate | 423 // has already adjusted the origin of |rect| to conform to whatever coordinate |
437 // space is required by the aura::Window. | 424 // space is required by the aura::Window. |
438 void InternalSetBounds(const gfx::Rect& rect); | 425 void InternalSetBounds(const gfx::Rect& rect); |
439 | 426 |
440 // Lazily grab a resize lock if the aura window size doesn't match the current | 427 // Lazily grab a resize lock if the aura window size doesn't match the current |
441 // frame size, to give time to the renderer. | 428 // frame size, to give time to the renderer. |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 // etc. | 733 // etc. |
747 scoped_ptr<content::LegacyRenderWidgetHostHWND> | 734 scoped_ptr<content::LegacyRenderWidgetHostHWND> |
748 legacy_render_widget_host_HWND_; | 735 legacy_render_widget_host_HWND_; |
749 #endif | 736 #endif |
750 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 737 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
751 }; | 738 }; |
752 | 739 |
753 } // namespace content | 740 } // namespace content |
754 | 741 |
755 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 742 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |