| 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 <android/bitmap.h> | 7 #include <android/bitmap.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 } | 452 } |
| 453 | 453 |
| 454 void RenderWidgetHostViewAndroid::DidUpdateBackingStore( | 454 void RenderWidgetHostViewAndroid::DidUpdateBackingStore( |
| 455 const gfx::Rect& scroll_rect, | 455 const gfx::Rect& scroll_rect, |
| 456 const gfx::Vector2d& scroll_delta, | 456 const gfx::Vector2d& scroll_delta, |
| 457 const std::vector<gfx::Rect>& copy_rects, | 457 const std::vector<gfx::Rect>& copy_rects, |
| 458 const ui::LatencyInfo& latency_info) { | 458 const ui::LatencyInfo& latency_info) { |
| 459 NOTIMPLEMENTED(); | 459 NOTIMPLEMENTED(); |
| 460 } | 460 } |
| 461 | 461 |
| 462 void RenderWidgetHostViewAndroid::RenderViewGone( | 462 void RenderWidgetHostViewAndroid::RenderProcessGone( |
| 463 base::TerminationStatus status, int error_code) { | 463 base::TerminationStatus status, int error_code) { |
| 464 Destroy(); | 464 Destroy(); |
| 465 } | 465 } |
| 466 | 466 |
| 467 void RenderWidgetHostViewAndroid::Destroy() { | 467 void RenderWidgetHostViewAndroid::Destroy() { |
| 468 RemoveLayers(); | 468 RemoveLayers(); |
| 469 content_view_core_ = NULL; | 469 content_view_core_ = NULL; |
| 470 | 470 |
| 471 // The RenderWidgetHost's destruction led here, so don't call it. | 471 // The RenderWidgetHost's destruction led here, so don't call it. |
| 472 host_ = NULL; | 472 host_ = NULL; |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 // RenderWidgetHostView, public: | 1114 // RenderWidgetHostView, public: |
| 1115 | 1115 |
| 1116 // static | 1116 // static |
| 1117 RenderWidgetHostView* | 1117 RenderWidgetHostView* |
| 1118 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1118 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
| 1119 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1119 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
| 1120 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1120 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
| 1121 } | 1121 } |
| 1122 | 1122 |
| 1123 } // namespace content | 1123 } // namespace content |
| OLD | NEW |