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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 gfx::Rect(current_frame_size_), | 1247 gfx::Rect(current_frame_size_), |
1248 frame, | 1248 frame, |
1249 base::Bind(callback, present_time)); | 1249 base::Bind(callback, present_time)); |
1250 } | 1250 } |
1251 } | 1251 } |
1252 } | 1252 } |
1253 | 1253 |
1254 #if defined(OS_WIN) | 1254 #if defined(OS_WIN) |
1255 void RenderWidgetHostViewAura::UpdateConstrainedWindowRects( | 1255 void RenderWidgetHostViewAura::UpdateConstrainedWindowRects( |
1256 const std::vector<gfx::Rect>& rects) { | 1256 const std::vector<gfx::Rect>& rects) { |
| 1257 if (rects == constrained_rects_) |
| 1258 return; |
1257 constrained_rects_ = rects; | 1259 constrained_rects_ = rects; |
1258 UpdateCutoutRects(); | 1260 UpdateCutoutRects(); |
1259 } | 1261 } |
1260 | 1262 |
1261 void RenderWidgetHostViewAura::UpdateCutoutRects() { | 1263 void RenderWidgetHostViewAura::UpdateCutoutRects() { |
1262 if (!window_->GetRootWindow()) | 1264 if (!window_->GetRootWindow()) |
1263 return; | 1265 return; |
1264 HWND parent = window_->GetDispatcher()->GetAcceleratedWidget(); | 1266 HWND parent = window_->GetDispatcher()->GetAcceleratedWidget(); |
1265 CutoutRectsParams params; | 1267 CutoutRectsParams params; |
1266 params.widget = this; | 1268 params.widget = this; |
(...skipping 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3327 RenderWidgetHost* widget) { | 3329 RenderWidgetHost* widget) { |
3328 return new RenderWidgetHostViewAura(widget); | 3330 return new RenderWidgetHostViewAura(widget); |
3329 } | 3331 } |
3330 | 3332 |
3331 // static | 3333 // static |
3332 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3334 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
3333 GetScreenInfoForWindow(results, NULL); | 3335 GetScreenInfoForWindow(results, NULL); |
3334 } | 3336 } |
3335 | 3337 |
3336 } // namespace content | 3338 } // namespace content |
OLD | NEW |