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

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

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 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual void Hide() OVERRIDE; 100 virtual void Hide() OVERRIDE;
101 virtual bool IsShowing() OVERRIDE; 101 virtual bool IsShowing() OVERRIDE;
102 virtual gfx::Rect GetViewBounds() const OVERRIDE; 102 virtual gfx::Rect GetViewBounds() const OVERRIDE;
103 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; 103 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE;
104 virtual float GetOverdrawBottomHeight() const OVERRIDE; 104 virtual float GetOverdrawBottomHeight() const OVERRIDE;
105 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; 105 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE;
106 virtual void SetIsLoading(bool is_loading) OVERRIDE; 106 virtual void SetIsLoading(bool is_loading) OVERRIDE;
107 virtual void TextInputStateChanged( 107 virtual void TextInputStateChanged(
108 const ViewHostMsg_TextInputState_Params& params) OVERRIDE; 108 const ViewHostMsg_TextInputState_Params& params) OVERRIDE;
109 virtual void ImeCancelComposition() OVERRIDE; 109 virtual void ImeCancelComposition() OVERRIDE;
110 virtual void FocusedNodeChanged(bool is_editable_node) OVERRIDE; 110 virtual void FocusedNodeChanged(bool is_editable_node,
111 int editable_node_max_length) OVERRIDE;
111 virtual void RenderProcessGone(base::TerminationStatus status, 112 virtual void RenderProcessGone(base::TerminationStatus status,
112 int error_code) OVERRIDE; 113 int error_code) OVERRIDE;
113 virtual void Destroy() OVERRIDE; 114 virtual void Destroy() OVERRIDE;
114 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; 115 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE;
115 virtual void SelectionChanged(const base::string16& text, 116 virtual void SelectionChanged(const base::string16& text,
116 size_t offset, 117 size_t offset,
117 const gfx::Range& range) OVERRIDE; 118 const gfx::Range& range) OVERRIDE;
118 virtual void SelectionBoundsChanged( 119 virtual void SelectionBoundsChanged(
119 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; 120 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE;
120 virtual void ScrollOffsetChanged() OVERRIDE; 121 virtual void ScrollOffsetChanged() OVERRIDE;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 scoped_ptr<LastFrameInfo> last_frame_info_; 396 scoped_ptr<LastFrameInfo> last_frame_info_;
396 397
397 TextSurroundingSelectionCallback text_surrounding_selection_callback_; 398 TextSurroundingSelectionCallback text_surrounding_selection_callback_;
398 399
399 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 400 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
400 }; 401 };
401 402
402 } // namespace content 403 } // namespace content
403 404
404 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 405 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698