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

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

Issue 125130: Fix focus traversal cycle. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | views/focus/focus_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 VIEWS_FOCUS_FOCUS_MANAGER_H_ 5 #ifndef VIEWS_FOCUS_FOCUS_MANAGER_H_
6 #define VIEWS_FOCUS_FOCUS_MANAGER_H_ 6 #define VIEWS_FOCUS_FOCUS_MANAGER_H_
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 static void InstallFocusSubclass(HWND window, View* view); 292 static void InstallFocusSubclass(HWND window, View* view);
293 293
294 // Uninstalls the window subclass installed by InstallFocusSubclass. 294 // Uninstalls the window subclass installed by InstallFocusSubclass.
295 static void UninstallFocusSubclass(HWND window); 295 static void UninstallFocusSubclass(HWND window);
296 #endif 296 #endif
297 ~FocusManager(); 297 ~FocusManager();
298 298
299 // Returns the next focusable view. 299 // Returns the next focusable view.
300 View* GetNextFocusableView(View* starting_view, bool reverse, bool dont_loop); 300 View* GetNextFocusableView(View* starting_view, bool reverse, bool dont_loop);
301 301
302 // Returns the last view of the focus traversal hierarchy.
303 View* FindLastFocusableView();
304
305 // Returns the focusable view found in the FocusTraversable specified starting 302 // Returns the focusable view found in the FocusTraversable specified starting
306 // at the specified view. This traverses down along the FocusTraversable 303 // at the specified view. This traverses down along the FocusTraversable
307 // hierarchy. 304 // hierarchy.
308 // Returns NULL if no focusable view were found. 305 // Returns NULL if no focusable view were found.
309 View* FindFocusableView(FocusTraversable* focus_traversable, 306 View* FindFocusableView(FocusTraversable* focus_traversable,
310 View* starting_view, 307 View* starting_view,
311 bool reverse); 308 bool reverse);
312 309
313 // The RootView of the window associated with this FocusManager. 310 // The RootView of the window associated with this FocusManager.
314 RootView* top_root_view_; 311 RootView* top_root_view_;
(...skipping 24 matching lines...) Expand all
339 // The list of registered FocusChange listeners. 336 // The list of registered FocusChange listeners.
340 typedef std::vector<FocusChangeListener*> FocusChangeListenerList; 337 typedef std::vector<FocusChangeListener*> FocusChangeListenerList;
341 FocusChangeListenerList focus_change_listeners_; 338 FocusChangeListenerList focus_change_listeners_;
342 339
343 DISALLOW_COPY_AND_ASSIGN(FocusManager); 340 DISALLOW_COPY_AND_ASSIGN(FocusManager);
344 }; 341 };
345 342
346 } // namespace views 343 } // namespace views
347 344
348 #endif // VIEWS_FOCUS_FOCUS_MANAGER_H_ 345 #endif // VIEWS_FOCUS_FOCUS_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | views/focus/focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698