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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // The storage id used in the ViewStorage to store/restore the view that last | 293 // The storage id used in the ViewStorage to store/restore the view that last |
294 // had focus. | 294 // had focus. |
295 int stored_focused_view_storage_id_; | 295 int stored_focused_view_storage_id_; |
296 | 296 |
297 // The reason why the focus most recently changed. | 297 // The reason why the focus most recently changed. |
298 FocusChangeReason focus_change_reason_; | 298 FocusChangeReason focus_change_reason_; |
299 | 299 |
300 // The list of registered FocusChange listeners. | 300 // The list of registered FocusChange listeners. |
301 ObserverList<FocusChangeListener, true> focus_change_listeners_; | 301 ObserverList<FocusChangeListener, true> focus_change_listeners_; |
302 | 302 |
303 #if defined(USE_X11) | |
304 // Indicates if we should handle the upcoming Alt key release event. | |
305 bool should_handle_menu_key_release_; | |
306 #endif | |
307 | |
308 // See description above getter. | 303 // See description above getter. |
309 bool is_changing_focus_; | 304 bool is_changing_focus_; |
310 | 305 |
311 DISALLOW_COPY_AND_ASSIGN(FocusManager); | 306 DISALLOW_COPY_AND_ASSIGN(FocusManager); |
312 }; | 307 }; |
313 | 308 |
314 } // namespace views | 309 } // namespace views |
315 | 310 |
316 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ | 311 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_H_ |
OLD | NEW |