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

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

Issue 2523753003: Add inputmode to android ImeAdapater. (Closed)
Patch Set: Rebase Created 4 years 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 <utility> 9 #include <utility>
10 10
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 // Sends an acknowledgement to the renderer of a processed IME event. 773 // Sends an acknowledgement to the renderer of a processed IME event.
774 updated_view->GetRenderWidgetHost()->Send( 774 updated_view->GetRenderWidgetHost()->Send(
775 new InputMsg_ImeEventAck(host_->GetRoutingID())); 775 new InputMsg_ImeEventAck(host_->GetRoutingID()));
776 } 776 }
777 777
778 if (!content_view_core_) 778 if (!content_view_core_)
779 return; 779 return;
780 780
781 content_view_core_->UpdateImeAdapter( 781 content_view_core_->UpdateImeAdapter(
782 GetNativeImeAdapter(), static_cast<int>(state.type), state.flags, 782 GetNativeImeAdapter(), static_cast<int>(state.type), state.flags,
783 state.value, state.selection_start, state.selection_end, 783 state.mode, state.value, state.selection_start, state.selection_end,
784 state.composition_start, state.composition_end, state.show_ime_if_needed, 784 state.composition_start, state.composition_end, state.show_ime_if_needed,
785 state.is_non_ime_change); 785 state.is_non_ime_change);
786 } 786 }
787 787
788 void RenderWidgetHostViewAndroid::UpdateBackgroundColor(SkColor color) { 788 void RenderWidgetHostViewAndroid::UpdateBackgroundColor(SkColor color) {
789 if (cached_background_color_ == color) 789 if (cached_background_color_ == color)
790 return; 790 return;
791 791
792 cached_background_color_ = color; 792 cached_background_color_ = color;
793 793
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 case ui::MotionEvent::ACTION_UP: 1990 case ui::MotionEvent::ACTION_UP:
1991 case ui::MotionEvent::ACTION_POINTER_UP: 1991 case ui::MotionEvent::ACTION_POINTER_UP:
1992 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", 1992 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED",
1993 delta.InMicroseconds(), 1, 1000000, 50); 1993 delta.InMicroseconds(), 1, 1000000, 50);
1994 default: 1994 default:
1995 return; 1995 return;
1996 } 1996 }
1997 } 1997 }
1998 1998
1999 } // namespace content 1999 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698