| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 protected: | 321 protected: |
| 322 ~RenderWidgetHostViewAura() override; | 322 ~RenderWidgetHostViewAura() override; |
| 323 | 323 |
| 324 // Exposed for tests. | 324 // Exposed for tests. |
| 325 aura::Window* window() { return window_; } | 325 aura::Window* window() { return window_; } |
| 326 | 326 |
| 327 DelegatedFrameHost* GetDelegatedFrameHost() const { | 327 DelegatedFrameHost* GetDelegatedFrameHost() const { |
| 328 return delegated_frame_host_.get(); | 328 return delegated_frame_host_.get(); |
| 329 } | 329 } |
| 330 | 330 |
| 331 // Returns the top level window that is hosting the renderwidget. | |
| 332 virtual aura::Window* GetToplevelWindow(); | |
| 333 | |
| 334 private: | 331 private: |
| 335 friend class DelegatedFrameHostClientAura; | 332 friend class DelegatedFrameHostClientAura; |
| 336 friend class InputMethodAuraTestBase; | 333 friend class InputMethodAuraTestBase; |
| 337 friend class RenderWidgetHostViewAuraTest; | 334 friend class RenderWidgetHostViewAuraTest; |
| 338 friend class RenderWidgetHostViewAuraCopyRequestTest; | 335 friend class RenderWidgetHostViewAuraCopyRequestTest; |
| 339 friend class TestInputMethodObserver; | 336 friend class TestInputMethodObserver; |
| 340 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, | 337 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, |
| 341 FinishImeCompositionSession); | 338 FinishImeCompositionSession); |
| 342 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 339 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 343 PopupRetainsCaptureAfterMouseRelease); | 340 PopupRetainsCaptureAfterMouseRelease); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; | 582 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; |
| 586 | 583 |
| 587 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 584 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 588 | 585 |
| 589 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 586 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 590 }; | 587 }; |
| 591 | 588 |
| 592 } // namespace content | 589 } // namespace content |
| 593 | 590 |
| 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 591 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |