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_DIALOGS_APP_MODAL_DIALOG_QUEUE_H_ | 5 #ifndef COMPONENTS_APP_MODAL_APP_MODAL_DIALOG_QUEUE_H_ |
6 #define COMPONENTS_APP_MODAL_DIALOGS_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/basictypes.h" |
11 | 11 |
12 class AppModalDialog; | 12 class AppModalDialog; |
13 | 13 |
14 template <typename T> struct DefaultSingletonTraits; | 14 template <typename T> struct DefaultSingletonTraits; |
15 | 15 |
16 // Keeps a queue of AppModalDialogs, making sure only one app modal | 16 // Keeps a queue of AppModalDialogs, making sure only one app modal |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // active app-modal dialog box. | 79 // active app-modal dialog box. |
80 AppModalDialog* active_dialog_; | 80 AppModalDialog* active_dialog_; |
81 | 81 |
82 // Stores if |ShowModalDialog()| is currently being called on an app-modal | 82 // Stores if |ShowModalDialog()| is currently being called on an app-modal |
83 // dialog. | 83 // dialog. |
84 bool showing_modal_dialog_; | 84 bool showing_modal_dialog_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(AppModalDialogQueue); | 86 DISALLOW_COPY_AND_ASSIGN(AppModalDialogQueue); |
87 }; | 87 }; |
88 | 88 |
89 #endif // COMPONENTS_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_QUEUE_H_ | 89 #endif // COMPONENTS_APP_MODAL_APP_MODAL_DIALOG_QUEUE_H_ |
OLD | NEW |