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

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

Issue 688853005: Consolidate javascript_dialog_manager.h and javascript_dialog_manager_impl.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 {
11
10 class JavaScriptAppModalDialog; 12 class JavaScriptAppModalDialog;
11 13
12 class NativeAppModalDialog { 14 class NativeAppModalDialog {
13 public: 15 public:
14 // Returns the buttons to be shown. See ui::DialogButton for which buttons can 16 // Returns the buttons to be shown. See ui::DialogButton for which buttons can
15 // be returned. 17 // be returned.
16 virtual int GetAppModalDialogButtons() const = 0; 18 virtual int GetAppModalDialogButtons() const = 0;
17 19
18 // Shows the dialog. 20 // Shows the dialog.
19 virtual void ShowAppModalDialog() = 0; 21 virtual void ShowAppModalDialog() = 0;
20 22
21 // Activates the dialog. 23 // Activates the dialog.
22 virtual void ActivateAppModalDialog() = 0; 24 virtual void ActivateAppModalDialog() = 0;
23 25
24 // Closes the dialog. 26 // Closes the dialog.
25 virtual void CloseAppModalDialog() = 0; 27 virtual void CloseAppModalDialog() = 0;
26 28
27 // Accepts or cancels the dialog. 29 // Accepts or cancels the dialog.
28 virtual void AcceptAppModalDialog() = 0; 30 virtual void AcceptAppModalDialog() = 0;
29 virtual void CancelAppModalDialog() = 0; 31 virtual void CancelAppModalDialog() = 0;
30 }; 32 };
31 33
34 } // namespace app_modal
35
32 #endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ 36 #endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698