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

Side by Side Diff: ui/views/controls/textfield/native_textfield_views.h

Issue 29943002: Limit display of the virtual keyboard to state changes triggered from a user gesture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer feedback. Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Updates the obscured state of the text for passwords, etc. 139 // Updates the obscured state of the text for passwords, etc.
140 void UpdateIsObscured(); 140 void UpdateIsObscured();
141 141
142 // Updates the enabled state. 142 // Updates the enabled state.
143 void UpdateEnabled(); 143 void UpdateEnabled();
144 144
145 // Updates the horizontal and vertical margins. 145 // Updates the horizontal and vertical margins.
146 void UpdateHorizontalMargins(); 146 void UpdateHorizontalMargins();
147 void UpdateVerticalMargins(); 147 void UpdateVerticalMargins();
148 148
149 // Displays a virtual keyboard or alternate input view if enabled.
150 void ShowImeIfNeeded() const;
sadrul 2014/01/10 19:53:21 I don't think this should be a const method
kevers 2014/01/13 16:59:10 Removed const.
151
149 // Returns whether or not an IME is composing text. 152 // Returns whether or not an IME is composing text.
150 bool IsIMEComposing() const; 153 bool IsIMEComposing() const;
151 154
152 // Gets the selected logical text range. 155 // Gets the selected logical text range.
153 const gfx::Range& GetSelectedRange() const; 156 const gfx::Range& GetSelectedRange() const;
154 157
155 // Selects the specified logical text range. 158 // Selects the specified logical text range.
156 void SelectRange(const gfx::Range& range); 159 void SelectRange(const gfx::Range& range);
157 160
158 // Gets the text selection model. 161 // Gets the text selection model.
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // obscured text. When the timer is running, the last typed char is shown 391 // obscured text. When the timer is running, the last typed char is shown
389 // and when the time expires, the last typed char is obscured. 392 // and when the time expires, the last typed char is obscured.
390 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_; 393 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_;
391 394
392 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 395 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
393 }; 396 };
394 397
395 } // namespace views 398 } // namespace views
396 399
397 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 400 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698