Chromium Code Reviews| 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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 753 | 753 |
| 754 void RenderWidgetHostViewAndroid::SetMultiTouchZoomSupportEnabled( | 754 void RenderWidgetHostViewAndroid::SetMultiTouchZoomSupportEnabled( |
| 755 bool enabled) { | 755 bool enabled) { |
| 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( | |
| 764 const gfx::Range& range, | |
| 765 const std::vector<gfx::Rect>& character_bounds) { | |
| 766 // TODO(yukawa): Implement this. | |
|
Mike West
2014/10/25 05:59:53
It doesn't look like the existing implementation i
sky
2014/10/27 15:28:32
NOTIMPLEMENTED?
yukawa
2014/10/27 16:10:29
Acknowledged.
yukawa
2014/10/27 16:10:29
Thanks but let me keep this as a comment. I'd like
| |
| 767 } | |
| 768 | |
| 763 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { | 769 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { |
| 764 ime_adapter_android_.FocusedNodeChanged(is_editable_node); | 770 ime_adapter_android_.FocusedNodeChanged(is_editable_node); |
| 765 if (selection_controller_) | 771 if (selection_controller_) |
| 766 selection_controller_->OnSelectionEditable(is_editable_node); | 772 selection_controller_->OnSelectionEditable(is_editable_node); |
| 767 } | 773 } |
| 768 | 774 |
| 769 void RenderWidgetHostViewAndroid::RenderProcessGone( | 775 void RenderWidgetHostViewAndroid::RenderProcessGone( |
| 770 base::TerminationStatus status, int error_code) { | 776 base::TerminationStatus status, int error_code) { |
| 771 Destroy(); | 777 Destroy(); |
| 772 } | 778 } |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1793 results->orientationAngle = display.RotationAsDegree(); | 1799 results->orientationAngle = display.RotationAsDegree(); |
| 1794 results->orientationType = | 1800 results->orientationType = |
| 1795 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 1801 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
| 1796 gfx::DeviceDisplayInfo info; | 1802 gfx::DeviceDisplayInfo info; |
| 1797 results->depth = info.GetBitsPerPixel(); | 1803 results->depth = info.GetBitsPerPixel(); |
| 1798 results->depthPerComponent = info.GetBitsPerComponent(); | 1804 results->depthPerComponent = info.GetBitsPerComponent(); |
| 1799 results->isMonochrome = (results->depthPerComponent == 0); | 1805 results->isMonochrome = (results->depthPerComponent == 0); |
| 1800 } | 1806 } |
| 1801 | 1807 |
| 1802 } // namespace content | 1808 } // namespace content |
| OLD | NEW |