Chromium Code Reviews| 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_CONTROLS_MENU_MENU_CONTROLLER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 560 | 560 |
| 561 // How deep we are in nested message loops. This should be at most 2 (when | 561 // How deep we are in nested message loops. This should be at most 2 (when |
| 562 // showing a context menu from a menu). | 562 // showing a context menu from a menu). |
| 563 int message_loop_depth_; | 563 int message_loop_depth_; |
| 564 | 564 |
| 565 views::MenuConfig menu_config_; | 565 views::MenuConfig menu_config_; |
| 566 | 566 |
| 567 // The timestamp of the event which closed the menu - or 0 otherwise. | 567 // The timestamp of the event which closed the menu - or 0 otherwise. |
| 568 base::TimeDelta closing_event_time_; | 568 base::TimeDelta closing_event_time_; |
| 569 | 569 |
| 570 // Time when the menu is first shown. | |
| 571 base::TimeDelta menu_start_time_; | |
|
sky
2013/04/04 20:36:04
Why is this a timedeal and not timeticks?
varunjain
2013/04/04 21:02:08
Done.
| |
| 572 | |
| 570 DISALLOW_COPY_AND_ASSIGN(MenuController); | 573 DISALLOW_COPY_AND_ASSIGN(MenuController); |
| 571 }; | 574 }; |
| 572 | 575 |
| 573 } // namespace views | 576 } // namespace views |
| 574 | 577 |
| 575 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 578 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| OLD | NEW |