| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 protected: | 325 protected: |
| 326 ~RenderWidgetHostViewAura() override; | 326 ~RenderWidgetHostViewAura() override; |
| 327 | 327 |
| 328 // Exposed for tests. | 328 // Exposed for tests. |
| 329 aura::Window* window() { return window_; } | 329 aura::Window* window() { return window_; } |
| 330 | 330 |
| 331 DelegatedFrameHost* GetDelegatedFrameHost() const { | 331 DelegatedFrameHost* GetDelegatedFrameHost() const { |
| 332 return delegated_frame_host_.get(); | 332 return delegated_frame_host_.get(); |
| 333 } | 333 } |
| 334 | 334 |
| 335 // Returns the top level window that is hosting the renderwidget. | |
| 336 virtual aura::Window* GetToplevelWindow(); | |
| 337 | |
| 338 private: | 335 private: |
| 339 friend class DelegatedFrameHostClientAura; | 336 friend class DelegatedFrameHostClientAura; |
| 340 friend class InputMethodAuraTestBase; | 337 friend class InputMethodAuraTestBase; |
| 341 friend class RenderWidgetHostViewAuraTest; | 338 friend class RenderWidgetHostViewAuraTest; |
| 342 friend class RenderWidgetHostViewAuraCopyRequestTest; | 339 friend class RenderWidgetHostViewAuraCopyRequestTest; |
| 343 friend class TestInputMethodObserver; | 340 friend class TestInputMethodObserver; |
| 344 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, | 341 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, |
| 345 FinishImeCompositionSession); | 342 FinishImeCompositionSession); |
| 346 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 343 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 347 PopupRetainsCaptureAfterMouseRelease); | 344 PopupRetainsCaptureAfterMouseRelease); |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; | 591 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; |
| 595 | 592 |
| 596 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 593 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 597 | 594 |
| 598 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 595 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 599 }; | 596 }; |
| 600 | 597 |
| 601 } // namespace content | 598 } // namespace content |
| 602 | 599 |
| 603 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 600 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |