| 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 |
| 335 private: | 338 private: |
| 336 friend class InputMethodAuraTestBase; | 339 friend class InputMethodAuraTestBase; |
| 337 friend class RenderWidgetHostViewAuraCopyRequestTest; | 340 friend class RenderWidgetHostViewAuraCopyRequestTest; |
| 338 friend class TestInputMethodObserver; | 341 friend class TestInputMethodObserver; |
| 339 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, | 342 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, |
| 340 FinishImeCompositionSession); | 343 FinishImeCompositionSession); |
| 341 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 344 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 342 PopupRetainsCaptureAfterMouseRelease); | 345 PopupRetainsCaptureAfterMouseRelease); |
| 343 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); | 346 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); |
| 344 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); | 347 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; | 604 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; |
| 602 | 605 |
| 603 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 606 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 604 | 607 |
| 605 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 608 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 606 }; | 609 }; |
| 607 | 610 |
| 608 } // namespace content | 611 } // namespace content |
| 609 | 612 |
| 610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 613 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |