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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 442433002: Not allowing user to type more chars than max length value for text field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: few nits resolved Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 19b64c6f5043fcfa27550f8a4529401dd24284a6..05c872d6a5e2ef3d51b1bdeefa97c7a1b1189432 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -636,8 +636,11 @@ void RenderWidgetHostViewAndroid::ImeCancelComposition() {
ime_adapter_android_.CancelComposition();
}
-void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) {
- ime_adapter_android_.FocusedNodeChanged(is_editable_node);
+void RenderWidgetHostViewAndroid::FocusedNodeChanged(
+ bool is_editable_node,
+ int editable_node_max_length) {
+ ime_adapter_android_.FocusedNodeChanged(is_editable_node,
+ editable_node_max_length);
if (selection_controller_)
selection_controller_->OnSelectionEditable(is_editable_node);
}

Powered by Google App Engine
This is Rietveld 408576698