| 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 host_->SendScreenRects(); |
| 832 } | 833 } |
| 833 | 834 |
| 834 void RenderWidgetHostViewAura::ParentHierarchyChanged() { | 835 void RenderWidgetHostViewAura::ParentHierarchyChanged() { |
| 835 ancestor_window_observer_.reset(new WindowAncestorObserver(this)); | 836 ancestor_window_observer_.reset(new WindowAncestorObserver(this)); |
| 836 // Snap when we receive a hierarchy changed. http://crbug.com/388908. | 837 // Snap when we receive a hierarchy changed. http://crbug.com/388908. |
| 837 HandleParentBoundsChanged(); | 838 HandleParentBoundsChanged(); |
| 838 } | 839 } |
| 839 | 840 |
| 840 void RenderWidgetHostViewAura::MovePluginWindows( | 841 void RenderWidgetHostViewAura::MovePluginWindows( |
| 841 const std::vector<WebPluginGeometry>& plugin_window_moves) { | 842 const std::vector<WebPluginGeometry>& plugin_window_moves) { |
| (...skipping 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2811 | 2812 |
| 2812 //////////////////////////////////////////////////////////////////////////////// | 2813 //////////////////////////////////////////////////////////////////////////////// |
| 2813 // RenderWidgetHostViewBase, public: | 2814 // RenderWidgetHostViewBase, public: |
| 2814 | 2815 |
| 2815 // static | 2816 // static |
| 2816 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 2817 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 2817 GetScreenInfoForWindow(results, NULL); | 2818 GetScreenInfoForWindow(results, NULL); |
| 2818 } | 2819 } |
| 2819 | 2820 |
| 2820 } // namespace content | 2821 } // namespace content |
| OLD | NEW |