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