| 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/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1358 } | 1358 } |
| 1359 } | 1359 } |
| 1360 | 1360 |
| 1361 void RenderWidgetHostViewAndroid::RunAckCallbacks() { | 1361 void RenderWidgetHostViewAndroid::RunAckCallbacks() { |
| 1362 while (!ack_callbacks_.empty()) { | 1362 while (!ack_callbacks_.empty()) { |
| 1363 ack_callbacks_.front().Run(); | 1363 ack_callbacks_.front().Run(); |
| 1364 ack_callbacks_.pop(); | 1364 ack_callbacks_.pop(); |
| 1365 } | 1365 } |
| 1366 } | 1366 } |
| 1367 | 1367 |
| 1368 void RenderWidgetHostViewAndroid::HasTouchEventHandlers( | |
| 1369 bool need_touch_events) { | |
| 1370 } | |
| 1371 | |
| 1372 void RenderWidgetHostViewAndroid::OnCompositingDidCommit() { | 1368 void RenderWidgetHostViewAndroid::OnCompositingDidCommit() { |
| 1373 RunAckCallbacks(); | 1369 RunAckCallbacks(); |
| 1374 } | 1370 } |
| 1375 | 1371 |
| 1376 void RenderWidgetHostViewAndroid::OnDetachCompositor() { | 1372 void RenderWidgetHostViewAndroid::OnDetachCompositor() { |
| 1377 DCHECK(content_view_core_); | 1373 DCHECK(content_view_core_); |
| 1378 DCHECK(!using_synchronous_compositor_); | 1374 DCHECK(!using_synchronous_compositor_); |
| 1379 RunAckCallbacks(); | 1375 RunAckCallbacks(); |
| 1380 } | 1376 } |
| 1381 | 1377 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1492 // RenderWidgetHostView, public: | 1488 // RenderWidgetHostView, public: |
| 1493 | 1489 |
| 1494 // static | 1490 // static |
| 1495 RenderWidgetHostView* | 1491 RenderWidgetHostView* |
| 1496 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1492 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
| 1497 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1493 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
| 1498 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1494 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
| 1499 } | 1495 } |
| 1500 | 1496 |
| 1501 } // namespace content | 1497 } // namespace content |
| OLD | NEW |