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 "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
(...skipping 3041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3052 #endif | 3052 #endif |
3053 in_shutdown_ = true; | 3053 in_shutdown_ = true; |
3054 host_->Shutdown(); | 3054 host_->Shutdown(); |
3055 } | 3055 } |
3056 } | 3056 } |
3057 } | 3057 } |
3058 | 3058 |
3059 //////////////////////////////////////////////////////////////////////////////// | 3059 //////////////////////////////////////////////////////////////////////////////// |
3060 // RenderWidgetHostViewAura, aura::RootWindowObserver implementation: | 3060 // RenderWidgetHostViewAura, aura::RootWindowObserver implementation: |
3061 | 3061 |
3062 void RenderWidgetHostViewAura::OnRootWindowHostMoved( | 3062 void RenderWidgetHostViewAura::OnWindowTreeHostMoved( |
3063 const aura::RootWindow* root, | 3063 const aura::RootWindow* root, |
3064 const gfx::Point& new_origin) { | 3064 const gfx::Point& new_origin) { |
3065 TRACE_EVENT1("ui", "RenderWidgetHostViewAura::OnRootWindowHostMoved", | 3065 TRACE_EVENT1("ui", "RenderWidgetHostViewAura::OnWindowTreeHostMoved", |
3066 "new_origin", new_origin.ToString()); | 3066 "new_origin", new_origin.ToString()); |
3067 | 3067 |
3068 UpdateScreenInfo(window_); | 3068 UpdateScreenInfo(window_); |
3069 } | 3069 } |
3070 | 3070 |
3071 //////////////////////////////////////////////////////////////////////////////// | 3071 //////////////////////////////////////////////////////////////////////////////// |
3072 // RenderWidgetHostViewAura, SoftwareFrameManagerClient implementation: | 3072 // RenderWidgetHostViewAura, SoftwareFrameManagerClient implementation: |
3073 | 3073 |
3074 void RenderWidgetHostViewAura::SoftwareFrameWasFreed( | 3074 void RenderWidgetHostViewAura::SoftwareFrameWasFreed( |
3075 uint32 output_surface_id, unsigned frame_id) { | 3075 uint32 output_surface_id, unsigned frame_id) { |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3484 RenderWidgetHost* widget) { | 3484 RenderWidgetHost* widget) { |
3485 return new RenderWidgetHostViewAura(widget); | 3485 return new RenderWidgetHostViewAura(widget); |
3486 } | 3486 } |
3487 | 3487 |
3488 // static | 3488 // static |
3489 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3489 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
3490 GetScreenInfoForWindow(results, NULL); | 3490 GetScreenInfoForWindow(results, NULL); |
3491 } | 3491 } |
3492 | 3492 |
3493 } // namespace content | 3493 } // namespace content |
OLD | NEW |