Chromium Code Reviews| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 327 protected: | 327 protected: |
| 328 ~RenderWidgetHostViewAura() override; | 328 ~RenderWidgetHostViewAura() override; |
| 329 | 329 |
| 330 // Exposed for tests. | 330 // Exposed for tests. |
| 331 aura::Window* window() { return window_; } | 331 aura::Window* window() { return window_; } |
| 332 | 332 |
| 333 DelegatedFrameHost* GetDelegatedFrameHost() const { | 333 DelegatedFrameHost* GetDelegatedFrameHost() const { |
| 334 return delegated_frame_host_.get(); | 334 return delegated_frame_host_.get(); |
| 335 } | 335 } |
| 336 | 336 |
| 337 // Returns the top level window that is hosting the renderwidget. | |
| 338 virtual aura::Window* GetToplevelWindow(); | |
|
sadrul
2017/05/08 15:47:26
I don't think you need this. See comment in the Fa
yhanada
2017/05/09 03:19:14
It was removed.
| |
| 339 | |
| 337 private: | 340 private: |
| 338 friend class DelegatedFrameHostClientAura; | 341 friend class DelegatedFrameHostClientAura; |
| 339 friend class InputMethodAuraTestBase; | 342 friend class InputMethodAuraTestBase; |
| 340 friend class RenderWidgetHostViewAuraTest; | 343 friend class RenderWidgetHostViewAuraTest; |
| 341 friend class RenderWidgetHostViewAuraCopyRequestTest; | 344 friend class RenderWidgetHostViewAuraCopyRequestTest; |
| 342 friend class TestInputMethodObserver; | 345 friend class TestInputMethodObserver; |
| 343 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, | 346 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, |
| 344 FinishImeCompositionSession); | 347 FinishImeCompositionSession); |
| 345 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 348 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 346 PopupRetainsCaptureAfterMouseRelease); | 349 PopupRetainsCaptureAfterMouseRelease); |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 366 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 367 UpdateCursorIfOverSelf); | 370 UpdateCursorIfOverSelf); |
| 368 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 371 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 369 VisibleViewportTest); | 372 VisibleViewportTest); |
| 370 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 373 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 371 OverscrollResetsOnBlur); | 374 OverscrollResetsOnBlur); |
| 372 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 375 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 373 FinishCompositionByMouse); | 376 FinishCompositionByMouse); |
| 374 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 377 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 375 ForwardsBeginFrameAcks); | 378 ForwardsBeginFrameAcks); |
| 379 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | |
| 380 VirtualKeyboardFocusEnsureCaretInRect); | |
| 376 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest, | 381 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest, |
| 377 WebContentsViewReparent); | 382 WebContentsViewReparent); |
| 378 | 383 |
| 379 class WindowObserver; | 384 class WindowObserver; |
| 380 friend class WindowObserver; | 385 friend class WindowObserver; |
| 381 | 386 |
| 382 class WindowAncestorObserver; | 387 class WindowAncestorObserver; |
| 383 friend class WindowAncestorObserver; | 388 friend class WindowAncestorObserver; |
| 384 | 389 |
| 385 void CreateAuraWindow(ui::wm::WindowType type); | 390 void CreateAuraWindow(ui::wm::WindowType type); |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 593 cc::FrameSinkId frame_sink_id_; | 598 cc::FrameSinkId frame_sink_id_; |
| 594 | 599 |
| 595 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 600 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 596 | 601 |
| 597 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 602 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 598 }; | 603 }; |
| 599 | 604 |
| 600 } // namespace content | 605 } // namespace content |
| 601 | 606 |
| 602 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 607 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |