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

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

Issue 1203223002: [Experimental, WIP] Demo version of extracting WebView selection data from CompositorFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 void RenderWidgetHostViewAndroid::ImeCancelComposition() { 811 void RenderWidgetHostViewAndroid::ImeCancelComposition() {
812 ime_adapter_android_.CancelComposition(); 812 ime_adapter_android_.CancelComposition();
813 } 813 }
814 814
815 void RenderWidgetHostViewAndroid::ImeCompositionRangeChanged( 815 void RenderWidgetHostViewAndroid::ImeCompositionRangeChanged(
816 const gfx::Range& range, 816 const gfx::Range& range,
817 const std::vector<gfx::Rect>& character_bounds) { 817 const std::vector<gfx::Rect>& character_bounds) {
818 // TODO(yukawa): Implement this. 818 // TODO(yukawa): Implement this.
819 } 819 }
820 820
821 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { 821 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node,
822 bool is_plugin_node) {
822 ime_adapter_android_.FocusedNodeChanged(is_editable_node); 823 ime_adapter_android_.FocusedNodeChanged(is_editable_node);
823 } 824 }
824 825
825 void RenderWidgetHostViewAndroid::RenderProcessGone( 826 void RenderWidgetHostViewAndroid::RenderProcessGone(
826 base::TerminationStatus status, int error_code) { 827 base::TerminationStatus status, int error_code) {
827 Destroy(); 828 Destroy();
828 } 829 }
829 830
830 void RenderWidgetHostViewAndroid::Destroy() { 831 void RenderWidgetHostViewAndroid::Destroy() {
831 RemoveLayers(); 832 RemoveLayers();
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
2048 results->orientationAngle = display.RotationAsDegree(); 2049 results->orientationAngle = display.RotationAsDegree();
2049 results->orientationType = 2050 results->orientationType =
2050 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2051 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2051 gfx::DeviceDisplayInfo info; 2052 gfx::DeviceDisplayInfo info;
2052 results->depth = info.GetBitsPerPixel(); 2053 results->depth = info.GetBitsPerPixel();
2053 results->depthPerComponent = info.GetBitsPerComponent(); 2054 results->depthPerComponent = info.GetBitsPerComponent();
2054 results->isMonochrome = (results->depthPerComponent == 0); 2055 results->isMonochrome = (results->depthPerComponent == 0);
2055 } 2056 }
2056 2057
2057 } // namespace content 2058 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698