OLD | NEW |
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 // Adds/removes a listener. The FocusChangeListener is notified every time | 281 // Adds/removes a listener. The FocusChangeListener is notified every time |
282 // the focused view is about to change. | 282 // the focused view is about to change. |
283 void AddFocusChangeListener(FocusChangeListener* listener); | 283 void AddFocusChangeListener(FocusChangeListener* listener); |
284 void RemoveFocusChangeListener(FocusChangeListener* listener); | 284 void RemoveFocusChangeListener(FocusChangeListener* listener); |
285 | 285 |
286 // Returns the AcceleratorTarget that should be activated for the specified | 286 // Returns the AcceleratorTarget that should be activated for the specified |
287 // keyboard accelerator, or NULL if no view is registered for that keyboard | 287 // keyboard accelerator, or NULL if no view is registered for that keyboard |
288 // accelerator. | 288 // accelerator. |
289 ui::AcceleratorTarget* GetCurrentTargetForAccelerator( | 289 ui::AcceleratorTarget* GetCurrentTargetForAccelerator( |
290 const ui::Accelerator& accelertor) const; | 290 const ui::Accelerator& accelerator) const; |
291 | 291 |
292 // Whether the given |accelerator| has a priority handler associated with it. | 292 // Whether the given |accelerator| has a priority handler associated with it. |
293 bool HasPriorityHandler(const ui::Accelerator& accelerator) const; | 293 bool HasPriorityHandler(const ui::Accelerator& accelerator) const; |
294 | 294 |
295 // Clears the native view having the focus. | 295 // Clears the native view having the focus. |
296 virtual void ClearNativeFocus(); | 296 virtual void ClearNativeFocus(); |
297 | 297 |
298 // Focuses the next keyboard-accessible pane, taken from the list of | 298 // Focuses the next keyboard-accessible pane, taken from the list of |
299 // views returned by WidgetDelegate::GetAccessiblePanes(). If there are | 299 // views returned by WidgetDelegate::GetAccessiblePanes(). If there are |
300 // no panes, the widget's root view is treated as a single pane. | 300 // no panes, the widget's root view is treated as a single pane. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 375 |
376 // See description above getter. | 376 // See description above getter. |
377 bool is_changing_focus_; | 377 bool is_changing_focus_; |
378 | 378 |
379 DISALLOW_COPY_AND_ASSIGN(FocusManager); | 379 DISALLOW_COPY_AND_ASSIGN(FocusManager); |
380 }; | 380 }; |
381 | 381 |
382 } // namespace views | 382 } // namespace views |
383 | 383 |
384 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ | 384 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ |
OLD | NEW |