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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 BackingStore* backing_store = host_->GetBackingStore(true); | 1096 BackingStore* backing_store = host_->GetBackingStore(true); |
1097 paint_canvas_ = NULL; | 1097 paint_canvas_ = NULL; |
1098 if (backing_store) { | 1098 if (backing_store) { |
1099 static_cast<BackingStoreSkia*>(backing_store)->SkiaShowRect(gfx::Point(), | 1099 static_cast<BackingStoreSkia*>(backing_store)->SkiaShowRect(gfx::Point(), |
1100 canvas); | 1100 canvas); |
1101 } else { | 1101 } else { |
1102 canvas->FillRect(gfx::Rect(window_->bounds().size()), SK_ColorWHITE); | 1102 canvas->FillRect(gfx::Rect(window_->bounds().size()), SK_ColorWHITE); |
1103 } | 1103 } |
1104 } | 1104 } |
1105 | 1105 |
| 1106 void RenderWidgetHostViewAura::OnDeviceScaleFactorChanged( |
| 1107 float device_scale_factor) { |
| 1108 // TODO(fsamuel|rbyers): Notify renderer that the device scale factor has |
| 1109 // changed. crbug.com/128267. |
| 1110 } |
| 1111 |
1106 void RenderWidgetHostViewAura::OnWindowDestroying() { | 1112 void RenderWidgetHostViewAura::OnWindowDestroying() { |
1107 } | 1113 } |
1108 | 1114 |
1109 void RenderWidgetHostViewAura::OnWindowDestroyed() { | 1115 void RenderWidgetHostViewAura::OnWindowDestroyed() { |
1110 host_->ViewDestroyed(); | 1116 host_->ViewDestroyed(); |
1111 delete this; | 1117 delete this; |
1112 } | 1118 } |
1113 | 1119 |
1114 void RenderWidgetHostViewAura::OnWindowVisibilityChanged(bool visible) { | 1120 void RenderWidgetHostViewAura::OnWindowVisibilityChanged(bool visible) { |
1115 } | 1121 } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( | 1293 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( |
1288 RenderWidgetHost* widget) { | 1294 RenderWidgetHost* widget) { |
1289 return new RenderWidgetHostViewAura(widget); | 1295 return new RenderWidgetHostViewAura(widget); |
1290 } | 1296 } |
1291 | 1297 |
1292 // static | 1298 // static |
1293 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( | 1299 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( |
1294 WebKit::WebScreenInfo* results) { | 1300 WebKit::WebScreenInfo* results) { |
1295 GetScreenInfoForWindow(results, NULL); | 1301 GetScreenInfoForWindow(results, NULL); |
1296 } | 1302 } |
OLD | NEW |