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_factory.h" | 10 #include "content/browser/renderer_host/image_transport_factory.h" |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 } | 447 } |
448 image_transport_clients_.erase(surface_handle); | 448 image_transport_clients_.erase(surface_handle); |
449 } | 449 } |
450 | 450 |
451 void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) { | 451 void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) { |
452 content::RenderWidgetHostViewBase::SetBackground(background); | 452 content::RenderWidgetHostViewBase::SetBackground(background); |
453 host_->SetBackground(background); | 453 host_->SetBackground(background); |
454 window_->layer()->SetFillsBoundsOpaquely(background.isOpaque()); | 454 window_->layer()->SetFillsBoundsOpaquely(background.isOpaque()); |
455 } | 455 } |
456 | 456 |
| 457 bool RenderWidgetHostViewAura::CopyFromCompositingSurface( |
| 458 const gfx::Size& size, |
| 459 skia::PlatformCanvas* output) { |
| 460 // TODO(mazda): Implement this. |
| 461 NOTIMPLEMENTED(); |
| 462 return false; |
| 463 } |
| 464 |
457 void RenderWidgetHostViewAura::GetScreenInfo(WebKit::WebScreenInfo* results) { | 465 void RenderWidgetHostViewAura::GetScreenInfo(WebKit::WebScreenInfo* results) { |
458 GetDefaultScreenInfo(results); | 466 GetDefaultScreenInfo(results); |
459 } | 467 } |
460 | 468 |
461 gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() { | 469 gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() { |
462 // TODO(beng): this is actually wrong, we are supposed to return the bounds | 470 // TODO(beng): this is actually wrong, we are supposed to return the bounds |
463 // of the container "top level" window, but we don't have a firm | 471 // of the container "top level" window, but we don't have a firm |
464 // concept of what constitutes a toplevel right now, so just do | 472 // concept of what constitutes a toplevel right now, so just do |
465 // this. | 473 // this. |
466 return window_->GetScreenBounds(); | 474 return window_->GetScreenBounds(); |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 WebKit::WebScreenInfo* results) { | 1060 WebKit::WebScreenInfo* results) { |
1053 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 1061 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); |
1054 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 1062 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
1055 results->availableRect = results->rect; | 1063 results->availableRect = results->rect; |
1056 // TODO(derat): Don't hardcode this? | 1064 // TODO(derat): Don't hardcode this? |
1057 results->depth = 24; | 1065 results->depth = 24; |
1058 results->depthPerComponent = 8; | 1066 results->depthPerComponent = 8; |
1059 results->verticalDPI = 96; | 1067 results->verticalDPI = 96; |
1060 results->horizontalDPI = 96; | 1068 results->horizontalDPI = 96; |
1061 } | 1069 } |
OLD | NEW |