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/logging.h" | 8 #include "base/logging.h" |
9 #include "content/browser/renderer_host/backing_store_skia.h" | 9 #include "content/browser/renderer_host/backing_store_skia.h" |
10 #include "content/browser/renderer_host/image_transport_client.h" | 10 #include "content/browser/renderer_host/image_transport_client.h" |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 } | 444 } |
445 image_transport_clients_.erase(surface_handle); | 445 image_transport_clients_.erase(surface_handle); |
446 } | 446 } |
447 | 447 |
448 void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) { | 448 void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) { |
449 content::RenderWidgetHostViewBase::SetBackground(background); | 449 content::RenderWidgetHostViewBase::SetBackground(background); |
450 host_->SetBackground(background); | 450 host_->SetBackground(background); |
451 window_->layer()->SetFillsBoundsOpaquely(background.isOpaque()); | 451 window_->layer()->SetFillsBoundsOpaquely(background.isOpaque()); |
452 } | 452 } |
453 | 453 |
| 454 bool RenderWidgetHostViewAura::CopyFromCompositingSurface( |
| 455 const gfx::Size& size, |
| 456 skia::PlatformCanvas* output) { |
| 457 // TODO(mazda): Implement this. |
| 458 NOTIMPLEMENTED(); |
| 459 return false; |
| 460 } |
| 461 |
454 void RenderWidgetHostViewAura::GetScreenInfo(WebKit::WebScreenInfo* results) { | 462 void RenderWidgetHostViewAura::GetScreenInfo(WebKit::WebScreenInfo* results) { |
455 GetDefaultScreenInfo(results); | 463 GetDefaultScreenInfo(results); |
456 } | 464 } |
457 | 465 |
458 gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() { | 466 gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() { |
459 // TODO(beng): this is actually wrong, we are supposed to return the bounds | 467 // TODO(beng): this is actually wrong, we are supposed to return the bounds |
460 // of the container "top level" window, but we don't have a firm | 468 // of the container "top level" window, but we don't have a firm |
461 // concept of what constitutes a toplevel right now, so just do | 469 // concept of what constitutes a toplevel right now, so just do |
462 // this. | 470 // this. |
463 return window_->GetScreenBounds(); | 471 return window_->GetScreenBounds(); |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 WebKit::WebScreenInfo* results) { | 1074 WebKit::WebScreenInfo* results) { |
1067 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 1075 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); |
1068 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 1076 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
1069 results->availableRect = results->rect; | 1077 results->availableRect = results->rect; |
1070 // TODO(derat): Don't hardcode this? | 1078 // TODO(derat): Don't hardcode this? |
1071 results->depth = 24; | 1079 results->depth = 24; |
1072 results->depthPerComponent = 8; | 1080 results->depthPerComponent = 8; |
1073 results->verticalDPI = 96; | 1081 results->verticalDPI = 96; |
1074 results->horizontalDPI = 96; | 1082 results->horizontalDPI = 96; |
1075 } | 1083 } |
OLD | NEW |