| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |