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