OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ | 5 #ifndef COMPONENTS_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ | 6 #define COMPONENTS_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 | 13 |
14 class NativeAppModalDialog; | 14 class NativeAppModalDialog; |
15 | 15 |
16 namespace content { | 16 namespace content { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 bool valid_; | 82 bool valid_; |
83 | 83 |
84 // The toolkit-specific implementation of the app modal dialog box. | 84 // The toolkit-specific implementation of the app modal dialog box. |
85 NativeAppModalDialog* native_dialog_; | 85 NativeAppModalDialog* native_dialog_; |
86 | 86 |
87 content::WebContents* web_contents_; | 87 content::WebContents* web_contents_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(AppModalDialog); | 89 DISALLOW_COPY_AND_ASSIGN(AppModalDialog); |
90 }; | 90 }; |
91 | 91 |
92 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ | 92 // An interface to notify that a modal dialog is shown. |
93 class AppModalDialogNotifier { | |
msw
2014/10/23 18:41:22
nit: technically this is a notify-ee (one that is
oshima
2014/10/23 21:44:18
Done.
| |
94 public: | |
95 AppModalDialogNotifier(); | |
96 virtual ~AppModalDialogNotifier(); | |
97 | |
98 // Called when the modal dialog is shown. | |
99 virtual void Notify(AppModalDialog* dialog) = 0; | |
100 }; | |
msw
2014/10/23 18:41:22
nit: private DISALLOW_COPY_AND_ASSIGN?
oshima
2014/10/23 21:44:18
Done.
| |
101 | |
102 #endif // COMPONENTS_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ | |
OLD | NEW |