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

Side by Side Diff: ui/views/focus/focus_manager.h

Issue 1182523003: Removes TextInputFocusManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit per comment. 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 #ifndef UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ 5 #ifndef UI_VIEWS_FOCUS_FOCUS_MANAGER_H_
6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ 6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // Returns the View that either currently has focus, or if no view has focus 209 // Returns the View that either currently has focus, or if no view has focus
210 // the view that last had focus. 210 // the view that last had focus.
211 View* GetStoredFocusView(); 211 View* GetStoredFocusView();
212 212
213 // Clears the stored focused view. 213 // Clears the stored focused view.
214 void ClearStoredFocusedView(); 214 void ClearStoredFocusedView();
215 215
216 // Returns true if in the process of changing the focused view. 216 // Returns true if in the process of changing the focused view.
217 bool is_changing_focus() const { return is_changing_focus_; } 217 bool is_changing_focus() const { return is_changing_focus_; }
218 218
219 // Changes the text input focus to |view->GetTextInputClient()| iff |view|
220 // is focused. Views must call this method when their internal
221 // TextInputClient instance changes.
222 void OnTextInputClientChanged(View* view);
223
224 // Moves the text input focus into/out from |view|.
225 void FocusTextInputClient(View* view);
226 void BlurTextInputClient(View* view);
227
228 // Disable shortcut handling. 219 // Disable shortcut handling.
229 void set_shortcut_handling_suspended(bool suspended) { 220 void set_shortcut_handling_suspended(bool suspended) {
230 shortcut_handling_suspended_ = suspended; 221 shortcut_handling_suspended_ = suspended;
231 } 222 }
232 // Returns whether shortcut handling is currently suspended. 223 // Returns whether shortcut handling is currently suspended.
233 bool shortcut_handling_suspended() { return shortcut_handling_suspended_; } 224 bool shortcut_handling_suspended() { return shortcut_handling_suspended_; }
234 225
235 // Register a keyboard accelerator for the specified target. If multiple 226 // Register a keyboard accelerator for the specified target. If multiple
236 // targets are registered for an accelerator, a target registered later has 227 // targets are registered for an accelerator, a target registered later has
237 // higher priority. 228 // higher priority.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 366
376 // See description above getter. 367 // See description above getter.
377 bool is_changing_focus_; 368 bool is_changing_focus_;
378 369
379 DISALLOW_COPY_AND_ASSIGN(FocusManager); 370 DISALLOW_COPY_AND_ASSIGN(FocusManager);
380 }; 371 };
381 372
382 } // namespace views 373 } // namespace views
383 374
384 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ 375 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/webview/webview_interactive_uitest.cc ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698