Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(965)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 671503005: Plumb composition character bounds for Android 5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 752
753 void RenderWidgetHostViewAndroid::SetMultiTouchZoomSupportEnabled( 753 void RenderWidgetHostViewAndroid::SetMultiTouchZoomSupportEnabled(
754 bool enabled) { 754 bool enabled) {
755 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled); 755 gesture_provider_.SetMultiTouchZoomSupportEnabled(enabled);
756 } 756 }
757 757
758 void RenderWidgetHostViewAndroid::ImeCancelComposition() { 758 void RenderWidgetHostViewAndroid::ImeCancelComposition() {
759 ime_adapter_android_.CancelComposition(); 759 ime_adapter_android_.CancelComposition();
760 } 760 }
761 761
762 void RenderWidgetHostViewAndroid::ImeCompositionRangeChanged(
763 const gfx::Range& range,
764 const std::vector<gfx::Rect>& character_bounds) {
765 // TODO(yukawa): Implement this.
766 }
767
762 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { 768 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) {
763 ime_adapter_android_.FocusedNodeChanged(is_editable_node); 769 ime_adapter_android_.FocusedNodeChanged(is_editable_node);
764 if (selection_controller_) 770 if (selection_controller_)
765 selection_controller_->OnSelectionEditable(is_editable_node); 771 selection_controller_->OnSelectionEditable(is_editable_node);
766 } 772 }
767 773
768 void RenderWidgetHostViewAndroid::RenderProcessGone( 774 void RenderWidgetHostViewAndroid::RenderProcessGone(
769 base::TerminationStatus status, int error_code) { 775 base::TerminationStatus status, int error_code) {
770 Destroy(); 776 Destroy();
771 } 777 }
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 results->orientationAngle = display.RotationAsDegree(); 1798 results->orientationAngle = display.RotationAsDegree();
1793 results->orientationType = 1799 results->orientationType =
1794 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 1800 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
1795 gfx::DeviceDisplayInfo info; 1801 gfx::DeviceDisplayInfo info;
1796 results->depth = info.GetBitsPerPixel(); 1802 results->depth = info.GetBitsPerPixel();
1797 results->depthPerComponent = info.GetBitsPerComponent(); 1803 results->depthPerComponent = info.GetBitsPerComponent();
1798 results->isMonochrome = (results->depthPerComponent == 0); 1804 results->isMonochrome = (results->depthPerComponent == 0);
1799 } 1805 }
1800 1806
1801 } // namespace content 1807 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698