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

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

Issue 1143323009: Report new screen position to renderer when ancestor window moves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not try to send screen rect during shutdown. Created 5 years, 6 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_unittest.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 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 } 822 }
823 823
824 void RenderWidgetHostViewAura::HandleParentBoundsChanged() { 824 void RenderWidgetHostViewAura::HandleParentBoundsChanged() {
825 SnapToPhysicalPixelBoundary(); 825 SnapToPhysicalPixelBoundary();
826 #if defined(OS_WIN) 826 #if defined(OS_WIN)
827 if (legacy_render_widget_host_HWND_) { 827 if (legacy_render_widget_host_HWND_) {
828 legacy_render_widget_host_HWND_->SetBounds( 828 legacy_render_widget_host_HWND_->SetBounds(
829 window_->GetBoundsInRootWindow()); 829 window_->GetBoundsInRootWindow());
830 } 830 }
831 #endif 831 #endif
832 if (!in_shutdown_)
833 host_->SendScreenRects();
832 } 834 }
833 835
834 void RenderWidgetHostViewAura::ParentHierarchyChanged() { 836 void RenderWidgetHostViewAura::ParentHierarchyChanged() {
835 ancestor_window_observer_.reset(new WindowAncestorObserver(this)); 837 ancestor_window_observer_.reset(new WindowAncestorObserver(this));
836 // Snap when we receive a hierarchy changed. http://crbug.com/388908. 838 // Snap when we receive a hierarchy changed. http://crbug.com/388908.
837 HandleParentBoundsChanged(); 839 HandleParentBoundsChanged();
838 } 840 }
839 841
840 void RenderWidgetHostViewAura::MovePluginWindows( 842 void RenderWidgetHostViewAura::MovePluginWindows(
841 const std::vector<WebPluginGeometry>& plugin_window_moves) { 843 const std::vector<WebPluginGeometry>& plugin_window_moves) {
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 2801
2800 //////////////////////////////////////////////////////////////////////////////// 2802 ////////////////////////////////////////////////////////////////////////////////
2801 // RenderWidgetHostViewBase, public: 2803 // RenderWidgetHostViewBase, public:
2802 2804
2803 // static 2805 // static
2804 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2806 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2805 GetScreenInfoForWindow(results, NULL); 2807 GetScreenInfoForWindow(results, NULL);
2806 } 2808 }
2807 2809
2808 } // namespace content 2810 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698