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/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 3020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3031 } | 3031 } |
3032 } | 3032 } |
3033 } | 3033 } |
3034 | 3034 |
3035 //////////////////////////////////////////////////////////////////////////////// | 3035 //////////////////////////////////////////////////////////////////////////////// |
3036 // RenderWidgetHostViewAura, aura::RootWindowObserver implementation: | 3036 // RenderWidgetHostViewAura, aura::RootWindowObserver implementation: |
3037 | 3037 |
3038 void RenderWidgetHostViewAura::OnRootWindowHostMoved( | 3038 void RenderWidgetHostViewAura::OnRootWindowHostMoved( |
3039 const aura::RootWindow* root, | 3039 const aura::RootWindow* root, |
3040 const gfx::Point& new_origin) { | 3040 const gfx::Point& new_origin) { |
| 3041 TRACE_EVENT1("ui", "RenderWidgetHostViewAura::OnRootWindowHostMoved", |
| 3042 "new_origin", new_origin.ToString()); |
| 3043 |
3041 UpdateScreenInfo(window_); | 3044 UpdateScreenInfo(window_); |
3042 } | 3045 } |
3043 | 3046 |
3044 //////////////////////////////////////////////////////////////////////////////// | 3047 //////////////////////////////////////////////////////////////////////////////// |
3045 // RenderWidgetHostViewAura, SoftwareFrameManagerClient implementation: | 3048 // RenderWidgetHostViewAura, SoftwareFrameManagerClient implementation: |
3046 | 3049 |
3047 void RenderWidgetHostViewAura::SoftwareFrameWasFreed( | 3050 void RenderWidgetHostViewAura::SoftwareFrameWasFreed( |
3048 uint32 output_surface_id, unsigned frame_id) { | 3051 uint32 output_surface_id, unsigned frame_id) { |
3049 ReleaseSoftwareFrame(output_surface_id, frame_id); | 3052 ReleaseSoftwareFrame(output_surface_id, frame_id); |
3050 } | 3053 } |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3438 RenderWidgetHost* widget) { | 3441 RenderWidgetHost* widget) { |
3439 return new RenderWidgetHostViewAura(widget); | 3442 return new RenderWidgetHostViewAura(widget); |
3440 } | 3443 } |
3441 | 3444 |
3442 // static | 3445 // static |
3443 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3446 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
3444 GetScreenInfoForWindow(results, NULL); | 3447 GetScreenInfoForWindow(results, NULL); |
3445 } | 3448 } |
3446 | 3449 |
3447 } // namespace content | 3450 } // namespace content |
OLD | NEW |