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/android/sys_utils.h" | 9 #include "base/android/sys_utils.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 } | 602 } |
603 | 603 |
604 void RenderWidgetHostViewAndroid::ImeCancelComposition() { | 604 void RenderWidgetHostViewAndroid::ImeCancelComposition() { |
605 ime_adapter_android_.CancelComposition(); | 605 ime_adapter_android_.CancelComposition(); |
606 } | 606 } |
607 | 607 |
608 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { | 608 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { |
609 ime_adapter_android_.FocusedNodeChanged(is_editable_node); | 609 ime_adapter_android_.FocusedNodeChanged(is_editable_node); |
610 } | 610 } |
611 | 611 |
612 void RenderWidgetHostViewAndroid::DidUpdateBackingStore( | |
613 const gfx::Rect& scroll_rect, | |
614 const gfx::Vector2d& scroll_delta, | |
615 const std::vector<gfx::Rect>& copy_rects, | |
616 const std::vector<ui::LatencyInfo>& latency_info) { | |
617 NOTIMPLEMENTED(); | |
618 } | |
619 | |
620 void RenderWidgetHostViewAndroid::RenderProcessGone( | 612 void RenderWidgetHostViewAndroid::RenderProcessGone( |
621 base::TerminationStatus status, int error_code) { | 613 base::TerminationStatus status, int error_code) { |
622 Destroy(); | 614 Destroy(); |
623 } | 615 } |
624 | 616 |
625 void RenderWidgetHostViewAndroid::Destroy() { | 617 void RenderWidgetHostViewAndroid::Destroy() { |
626 RemoveLayers(); | 618 RemoveLayers(); |
627 SetContentViewCore(NULL); | 619 SetContentViewCore(NULL); |
628 | 620 |
629 // The RenderWidgetHost's destruction led here, so don't call it. | 621 // The RenderWidgetHost's destruction led here, so don't call it. |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 // RenderWidgetHostView, public: | 1493 // RenderWidgetHostView, public: |
1502 | 1494 |
1503 // static | 1495 // static |
1504 RenderWidgetHostView* | 1496 RenderWidgetHostView* |
1505 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1497 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
1506 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1498 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
1507 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1499 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
1508 } | 1500 } |
1509 | 1501 |
1510 } // namespace content | 1502 } // namespace content |
OLD | NEW |