| 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> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
| 17 #include "base/timer.h" | 17 #include "base/timer.h" |
| 18 #include "ui/base/events.h" | 18 #include "ui/base/events/event_constants.h" |
| 19 #include "ui/views/controls/menu/menu_delegate.h" | 19 #include "ui/views/controls/menu/menu_delegate.h" |
| 20 #include "ui/views/controls/menu/menu_item_view.h" | 20 #include "ui/views/controls/menu/menu_item_view.h" |
| 21 | 21 |
| 22 #if defined(USE_AURA) | 22 #if defined(USE_AURA) |
| 23 #include "ui/aura/client/activation_change_observer.h" | 23 #include "ui/aura/client/activation_change_observer.h" |
| 24 | 24 |
| 25 namespace aura { | 25 namespace aura { |
| 26 class RootWindow; | 26 class RootWindow; |
| 27 class Window; | 27 class Window; |
| 28 } | 28 } |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 // How deep we are in nested message loops. This should be at most 2 (when | 557 // How deep we are in nested message loops. This should be at most 2 (when |
| 558 // showing a context menu from a menu). | 558 // showing a context menu from a menu). |
| 559 int message_loop_depth_; | 559 int message_loop_depth_; |
| 560 | 560 |
| 561 DISALLOW_COPY_AND_ASSIGN(MenuController); | 561 DISALLOW_COPY_AND_ASSIGN(MenuController); |
| 562 }; | 562 }; |
| 563 | 563 |
| 564 } // namespace views | 564 } // namespace views |
| 565 | 565 |
| 566 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 566 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| OLD | NEW |