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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 | 629 |
630 void RenderWidgetHostViewAndroid::SetMultiTouchZoomSupportEnabled( | 630 void RenderWidgetHostViewAndroid::SetMultiTouchZoomSupportEnabled( |
631 bool enabled) { | 631 bool enabled) { |
632 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled); | 632 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled); |
633 } | 633 } |
634 | 634 |
635 void RenderWidgetHostViewAndroid::ImeCancelComposition() { | 635 void RenderWidgetHostViewAndroid::ImeCancelComposition() { |
636 ime_adapter_android_.CancelComposition(); | 636 ime_adapter_android_.CancelComposition(); |
637 } | 637 } |
638 | 638 |
639 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { | 639 void RenderWidgetHostViewAndroid::FocusedNodeChanged( |
640 ime_adapter_android_.FocusedNodeChanged(is_editable_node); | 640 bool is_editable_node, |
| 641 int editable_node_max_length) { |
| 642 ime_adapter_android_.FocusedNodeChanged(is_editable_node, |
| 643 editable_node_max_length); |
641 if (selection_controller_) | 644 if (selection_controller_) |
642 selection_controller_->OnSelectionEditable(is_editable_node); | 645 selection_controller_->OnSelectionEditable(is_editable_node); |
643 } | 646 } |
644 | 647 |
645 void RenderWidgetHostViewAndroid::RenderProcessGone( | 648 void RenderWidgetHostViewAndroid::RenderProcessGone( |
646 base::TerminationStatus status, int error_code) { | 649 base::TerminationStatus status, int error_code) { |
647 Destroy(); | 650 Destroy(); |
648 } | 651 } |
649 | 652 |
650 void RenderWidgetHostViewAndroid::Destroy() { | 653 void RenderWidgetHostViewAndroid::Destroy() { |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1650 results->orientationAngle = display.RotationAsDegree(); | 1653 results->orientationAngle = display.RotationAsDegree(); |
1651 results->orientationType = | 1654 results->orientationType = |
1652 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 1655 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
1653 gfx::DeviceDisplayInfo info; | 1656 gfx::DeviceDisplayInfo info; |
1654 results->depth = info.GetBitsPerPixel(); | 1657 results->depth = info.GetBitsPerPixel(); |
1655 results->depthPerComponent = info.GetBitsPerComponent(); | 1658 results->depthPerComponent = info.GetBitsPerComponent(); |
1656 results->isMonochrome = (results->depthPerComponent == 0); | 1659 results->isMonochrome = (results->depthPerComponent == 0); |
1657 } | 1660 } |
1658 | 1661 |
1659 } // namespace content | 1662 } // namespace content |
OLD | NEW |