Revert 168224 - Update V8 to version 3.15.4.
[chromium-blink-merge.git] / chrome / browser / ui / simple_message_box.h
blob9169066de20bca909fe44601e7beed95cd940624
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_SIMPLE_MESSAGE_BOX_H_
6 #define CHROME_BROWSER_UI_SIMPLE_MESSAGE_BOX_H_
8 #include "base/string16.h"
9 #include "ui/gfx/native_widget_types.h"
11 namespace chrome {
13 enum MessageBoxResult {
14 MESSAGE_BOX_RESULT_NO = 0,
15 MESSAGE_BOX_RESULT_YES = 1,
18 enum MessageBoxType {
19 MESSAGE_BOX_TYPE_INFORMATION,
20 MESSAGE_BOX_TYPE_WARNING,
21 MESSAGE_BOX_TYPE_QUESTION,
24 // Shows a dialog box with the given |title| and |message|. If |parent| is
25 // non-NULL, the box will be made modal to the |parent|, except on Mac, where it
26 // is always app-modal. If |type| is MESSAGE_BOX_TYPE_QUESTION, the box will
27 // have YES and NO buttons; otherwise it will have an OK button.
29 // NOTE: In general, you should avoid this since it's usually poor UI.
30 // We have a variety of other surfaces such as wrench menu notifications and
31 // infobars; consult the UI leads for a recommendation.
32 MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
33 const string16& title,
34 const string16& message,
35 MessageBoxType type);
37 } // namespace chrome
39 #endif // CHROME_BROWSER_UI_SIMPLE_MESSAGE_BOX_H_