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 "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "content/browser/renderer_host/backing_store_skia.h" | 10 #include "content/browser/renderer_host/backing_store_skia.h" |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 } | 521 } |
522 image_transport_clients_.erase(surface_handle); | 522 image_transport_clients_.erase(surface_handle); |
523 } | 523 } |
524 | 524 |
525 void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) { | 525 void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) { |
526 content::RenderWidgetHostViewBase::SetBackground(background); | 526 content::RenderWidgetHostViewBase::SetBackground(background); |
527 host_->SetBackground(background); | 527 host_->SetBackground(background); |
528 window_->layer()->SetFillsBoundsOpaquely(background.isOpaque()); | 528 window_->layer()->SetFillsBoundsOpaquely(background.isOpaque()); |
529 } | 529 } |
530 | 530 |
| 531 bool RenderWidgetHostViewAura::CopyFromCompositingSurface( |
| 532 const gfx::Size& size, |
| 533 skia::PlatformCanvas* output) { |
| 534 // TODO(mazda): Implement this. |
| 535 NOTIMPLEMENTED(); |
| 536 return false; |
| 537 } |
| 538 |
531 void RenderWidgetHostViewAura::GetScreenInfo(WebKit::WebScreenInfo* results) { | 539 void RenderWidgetHostViewAura::GetScreenInfo(WebKit::WebScreenInfo* results) { |
532 GetDefaultScreenInfo(results); | 540 GetDefaultScreenInfo(results); |
533 } | 541 } |
534 | 542 |
535 gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() { | 543 gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() { |
536 // TODO(beng): this is actually wrong, we are supposed to return the bounds | 544 // TODO(beng): this is actually wrong, we are supposed to return the bounds |
537 // of the container "top level" window, but we don't have a firm | 545 // of the container "top level" window, but we don't have a firm |
538 // concept of what constitutes a toplevel right now, so just do | 546 // concept of what constitutes a toplevel right now, so just do |
539 // this. | 547 // this. |
540 return window_->GetScreenBounds(); | 548 return window_->GetScreenBounds(); |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 WebKit::WebScreenInfo* results) { | 1151 WebKit::WebScreenInfo* results) { |
1144 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 1152 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); |
1145 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 1153 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
1146 results->availableRect = results->rect; | 1154 results->availableRect = results->rect; |
1147 // TODO(derat): Don't hardcode this? | 1155 // TODO(derat): Don't hardcode this? |
1148 results->depth = 24; | 1156 results->depth = 24; |
1149 results->depthPerComponent = 8; | 1157 results->depthPerComponent = 8; |
1150 results->verticalDPI = 96; | 1158 results->verticalDPI = 96; |
1151 results->horizontalDPI = 96; | 1159 results->horizontalDPI = 96; |
1152 } | 1160 } |
OLD | NEW |