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

Side by Side Diff: chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h

Issue 8553001: views: Add an Options enum to MessageBoxView control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_NATIVE_APP_MODAL_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_ 6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
11 class JavaScriptAppModalDialog; 11 class JavaScriptAppModalDialog;
12 12
13 class NativeAppModalDialog { 13 class NativeAppModalDialog {
14 public: 14 public:
15 // Returns the buttons to be shown. See MessageBoxFlags for a description of 15 // Returns the buttons to be shown. See JavascriptMessageType for a
16 // the values. 16 // description of the values.
17 virtual int GetAppModalDialogButtons() const = 0; 17 virtual int GetAppModalDialogButtons() const = 0;
sky 2011/12/01 16:42:02 This comment is wrong. Isn't this returning Dialog
tfarina 2011/12/01 17:52:58 Right. Comment reworded. Although it is working b
18 18
19 // Shows the dialog. 19 // Shows the dialog.
20 virtual void ShowAppModalDialog() = 0; 20 virtual void ShowAppModalDialog() = 0;
21 21
22 // Activates the dialog. 22 // Activates the dialog.
23 virtual void ActivateAppModalDialog() = 0; 23 virtual void ActivateAppModalDialog() = 0;
24 24
25 // Closes the dialog. 25 // Closes the dialog.
26 virtual void CloseAppModalDialog() = 0; 26 virtual void CloseAppModalDialog() = 0;
27 27
28 // Accepts or cancels the dialog. 28 // Accepts or cancels the dialog.
29 virtual void AcceptAppModalDialog() = 0; 29 virtual void AcceptAppModalDialog() = 0;
30 virtual void CancelAppModalDialog() = 0; 30 virtual void CancelAppModalDialog() = 0;
31 31
32 // Creates an app modal dialog for a JavaScript prompt. 32 // Creates an app modal dialog for a JavaScript prompt.
33 static NativeAppModalDialog* CreateNativeJavaScriptPrompt( 33 static NativeAppModalDialog* CreateNativeJavaScriptPrompt(
34 JavaScriptAppModalDialog* dialog, 34 JavaScriptAppModalDialog* dialog,
35 gfx::NativeWindow parent_window); 35 gfx::NativeWindow parent_window);
36 }; 36 };
37 37
38 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_ 38 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
39 39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698