Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 2583873002: Correctly update the popup window position (Closed)
Patch Set: test added Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698