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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 // security issues. Enforce that it's only called in single process mode. | 541 // security issues. Enforce that it's only called in single process mode. |
542 CHECK(RenderProcessHost::run_renderer_in_process()); | 542 CHECK(RenderProcessHost::run_renderer_in_process()); |
543 if (content_view_core_) | 543 if (content_view_core_) |
544 content_view_core_->OnSmartClipDataExtracted(result); | 544 content_view_core_->OnSmartClipDataExtracted(result); |
545 } | 545 } |
546 | 546 |
547 void RenderWidgetHostViewAndroid::ImeCancelComposition() { | 547 void RenderWidgetHostViewAndroid::ImeCancelComposition() { |
548 ime_adapter_android_.CancelComposition(); | 548 ime_adapter_android_.CancelComposition(); |
549 } | 549 } |
550 | 550 |
| 551 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { |
| 552 ime_adapter_android_.FocusedNodeChanged(is_editable_node); |
| 553 } |
| 554 |
551 void RenderWidgetHostViewAndroid::DidUpdateBackingStore( | 555 void RenderWidgetHostViewAndroid::DidUpdateBackingStore( |
552 const gfx::Rect& scroll_rect, | 556 const gfx::Rect& scroll_rect, |
553 const gfx::Vector2d& scroll_delta, | 557 const gfx::Vector2d& scroll_delta, |
554 const std::vector<gfx::Rect>& copy_rects, | 558 const std::vector<gfx::Rect>& copy_rects, |
555 const std::vector<ui::LatencyInfo>& latency_info) { | 559 const std::vector<ui::LatencyInfo>& latency_info) { |
556 NOTIMPLEMENTED(); | 560 NOTIMPLEMENTED(); |
557 } | 561 } |
558 | 562 |
559 void RenderWidgetHostViewAndroid::RenderProcessGone( | 563 void RenderWidgetHostViewAndroid::RenderProcessGone( |
560 base::TerminationStatus status, int error_code) { | 564 base::TerminationStatus status, int error_code) { |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 // RenderWidgetHostView, public: | 1452 // RenderWidgetHostView, public: |
1449 | 1453 |
1450 // static | 1454 // static |
1451 RenderWidgetHostView* | 1455 RenderWidgetHostView* |
1452 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1456 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
1453 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1457 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
1454 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1458 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
1455 } | 1459 } |
1456 | 1460 |
1457 } // namespace content | 1461 } // namespace content |
OLD | NEW |