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/build_info.h" | 9 #include "base/android/build_info.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled); | 756 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled); |
757 } | 757 } |
758 | 758 |
759 void RenderWidgetHostViewAndroid::ImeCancelComposition() { | 759 void RenderWidgetHostViewAndroid::ImeCancelComposition() { |
760 ime_adapter_android_.CancelComposition(); | 760 ime_adapter_android_.CancelComposition(); |
761 } | 761 } |
762 | 762 |
763 void RenderWidgetHostViewAndroid::ImeCompositionRangeChanged( | 763 void RenderWidgetHostViewAndroid::ImeCompositionRangeChanged( |
764 const gfx::Range& range, | 764 const gfx::Range& range, |
765 const std::vector<gfx::Rect>& character_bounds) { | 765 const std::vector<gfx::Rect>& character_bounds) { |
766 // TODO(yukawa): Implement this. | 766 ime_adapter_android_.SetCharacterBounds(character_bounds); |
767 } | 767 } |
768 | 768 |
769 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { | 769 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { |
770 ime_adapter_android_.FocusedNodeChanged(is_editable_node); | 770 ime_adapter_android_.FocusedNodeChanged(is_editable_node); |
771 if (selection_controller_) | 771 if (selection_controller_) |
772 selection_controller_->OnSelectionEditable(is_editable_node); | 772 selection_controller_->OnSelectionEditable(is_editable_node); |
773 } | 773 } |
774 | 774 |
775 void RenderWidgetHostViewAndroid::RenderProcessGone( | 775 void RenderWidgetHostViewAndroid::RenderProcessGone( |
776 base::TerminationStatus status, int error_code) { | 776 base::TerminationStatus status, int error_code) { |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1800 results->orientationAngle = display.RotationAsDegree(); | 1800 results->orientationAngle = display.RotationAsDegree(); |
1801 results->orientationType = | 1801 results->orientationType = |
1802 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 1802 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
1803 gfx::DeviceDisplayInfo info; | 1803 gfx::DeviceDisplayInfo info; |
1804 results->depth = info.GetBitsPerPixel(); | 1804 results->depth = info.GetBitsPerPixel(); |
1805 results->depthPerComponent = info.GetBitsPerComponent(); | 1805 results->depthPerComponent = info.GetBitsPerComponent(); |
1806 results->isMonochrome = (results->depthPerComponent == 0); | 1806 results->isMonochrome = (results->depthPerComponent == 0); |
1807 } | 1807 } |
1808 | 1808 |
1809 } // namespace content | 1809 } // namespace content |
OLD | NEW |