Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: components/app_modal/native_app_modal_dialog.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ 5 #ifndef COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_
6 #define COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ 6 #define COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 9
10 namespace app_modal { 10 namespace app_modal {
11 11
12 class JavaScriptAppModalDialog;
13 12
14 class NativeAppModalDialog { 13 class NativeAppModalDialog {
15 public: 14 public:
16 virtual ~NativeAppModalDialog() {} 15 virtual ~NativeAppModalDialog() {}
17 16
18 // Returns the buttons to be shown. See ui::DialogButton for which buttons can 17 // Returns the buttons to be shown. See ui::DialogButton for which buttons can
19 // be returned. 18 // be returned.
20 virtual int GetAppModalDialogButtons() const = 0; 19 virtual int GetAppModalDialogButtons() const = 0;
21 20
22 // Shows the dialog. 21 // Shows the dialog.
23 virtual void ShowAppModalDialog() = 0; 22 virtual void ShowAppModalDialog() = 0;
24 23
25 // Activates the dialog. 24 // Activates the dialog.
26 virtual void ActivateAppModalDialog() = 0; 25 virtual void ActivateAppModalDialog() = 0;
27 26
28 // Closes the dialog. 27 // Closes the dialog.
29 virtual void CloseAppModalDialog() = 0; 28 virtual void CloseAppModalDialog() = 0;
30 29
31 // Accepts or cancels the dialog. 30 // Accepts or cancels the dialog.
32 virtual void AcceptAppModalDialog() = 0; 31 virtual void AcceptAppModalDialog() = 0;
33 virtual void CancelAppModalDialog() = 0; 32 virtual void CancelAppModalDialog() = 0;
34 33
35 // Should return true when the dialog is being shown. 34 // Should return true when the dialog is being shown.
36 virtual bool IsShowing() const = 0; 35 virtual bool IsShowing() const = 0;
37 }; 36 };
38 37
39 } // namespace app_modal 38 } // namespace app_modal
40 39
41 #endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ 40 #endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698