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 DelegatedFrameHostClientAura; | 339 friend class DelegatedFrameHostClientAura; |
337 friend class InputMethodAuraTestBase; | 340 friend class InputMethodAuraTestBase; |
338 friend class RenderWidgetHostViewAuraTest; | 341 friend class RenderWidgetHostViewAuraTest; |
339 friend class RenderWidgetHostViewAuraCopyRequestTest; | 342 friend class RenderWidgetHostViewAuraCopyRequestTest; |
340 friend class TestInputMethodObserver; | 343 friend class TestInputMethodObserver; |
341 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, | 344 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, |
342 FinishImeCompositionSession); | 345 FinishImeCompositionSession); |
343 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 346 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
344 PopupRetainsCaptureAfterMouseRelease); | 347 PopupRetainsCaptureAfterMouseRelease); |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; | 594 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; |
592 | 595 |
593 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 596 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
594 | 597 |
595 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 598 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
596 }; | 599 }; |
597 | 600 |
598 } // namespace content | 601 } // namespace content |
599 | 602 |
600 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 603 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |