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 COMPONENTS_APP_MODAL_APP_MODAL_DIALOG_QUEUE_H_ | 5 #ifndef COMPONENTS_APP_MODAL_APP_MODAL_DIALOG_QUEUE_H_ |
6 #define COMPONENTS_APP_MODAL_APP_MODAL_DIALOG_QUEUE_H_ | 6 #define COMPONENTS_APP_MODAL_APP_MODAL_DIALOG_QUEUE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 template <typename T> struct DefaultSingletonTraits; | 13 template <typename T> struct DefaultSingletonTraits; |
14 } | 14 } |
15 | 15 |
16 namespace app_modal { | 16 namespace app_modal { |
17 | 17 |
18 class AppModalDialog; | 18 class AppModalDialog; |
19 | 19 |
20 // Keeps a queue of AppModalDialogs, making sure only one app modal | 20 // Keeps a queue of AppModalDialogs, making sure only one app modal |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Stores if |ShowModalDialog()| is currently being called on an app-modal | 86 // Stores if |ShowModalDialog()| is currently being called on an app-modal |
87 // dialog. | 87 // dialog. |
88 bool showing_modal_dialog_; | 88 bool showing_modal_dialog_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(AppModalDialogQueue); | 90 DISALLOW_COPY_AND_ASSIGN(AppModalDialogQueue); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace app_modal | 93 } // namespace app_modal |
94 | 94 |
95 #endif // COMPONENTS_APP_MODAL_APP_MODAL_DIALOG_QUEUE_H_ | 95 #endif // COMPONENTS_APP_MODAL_APP_MODAL_DIALOG_QUEUE_H_ |
OLD | NEW |