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_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "content/browser/android/content_view_core_impl.h" | 10 #include "content/browser/android/content_view_core_impl.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 NOTIMPLEMENTED(); | 233 NOTIMPLEMENTED(); |
234 return NULL; | 234 return NULL; |
235 } | 235 } |
236 | 236 |
237 void RenderWidgetHostViewAndroid::SetBackground(const SkBitmap& background) { | 237 void RenderWidgetHostViewAndroid::SetBackground(const SkBitmap& background) { |
238 RenderWidgetHostViewBase::SetBackground(background); | 238 RenderWidgetHostViewBase::SetBackground(background); |
239 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background)); | 239 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background)); |
240 } | 240 } |
241 | 241 |
242 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( | 242 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( |
243 const gfx::Size& size, | 243 const gfx::Rect& src_subrect, |
244 const base::Callback<void(bool)>& callback, | 244 const gfx::Size& dst_size, |
245 skia::PlatformCanvas* output) { | 245 const base::Callback<void(bool)>& callback, |
| 246 skia::PlatformCanvas* output) { |
246 NOTIMPLEMENTED(); | 247 NOTIMPLEMENTED(); |
247 callback.Run(false); | 248 callback.Run(false); |
248 } | 249 } |
249 | 250 |
250 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() { | 251 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() { |
251 const bool activated = host_->is_accelerated_compositing_active(); | 252 const bool activated = host_->is_accelerated_compositing_active(); |
252 if (content_view_core_) | 253 if (content_view_core_) |
253 content_view_core_->OnAcceleratedCompositingStateChange( | 254 content_view_core_->OnAcceleratedCompositingStateChange( |
254 this, activated, false); | 255 this, activated, false); |
255 } | 256 } |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 // RenderWidgetHostView, public: | 360 // RenderWidgetHostView, public: |
360 | 361 |
361 // static | 362 // static |
362 RenderWidgetHostView* | 363 RenderWidgetHostView* |
363 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 364 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
364 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 365 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
365 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 366 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
366 } | 367 } |
367 | 368 |
368 } // namespace content | 369 } // namespace content |
OLD | NEW |