OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SIMPLE_MESSAGE_BOX_H_ |
| 6 #define CHROME_BROWSER_SIMPLE_MESSAGE_BOX_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/string16.h" |
| 10 #include "ui/gfx/native_widget_types.h" |
| 11 |
| 12 namespace browser { |
| 13 |
| 14 // Pops up an error box with an OK button. If |parent| is non-null, the box |
| 15 // will be modal on it. (On Mac, it is always app-modal.) Generally speaking, |
| 16 // this function should not be used for much. Infobars are preferred. |
| 17 void ShowErrorBox(gfx::NativeWindow parent, |
| 18 const string16& title, |
| 19 const string16& message); |
| 20 |
| 21 // Pops up a dialog box with two buttons (Yes/No), with the default button of |
| 22 // Yes. If |parent| is non-null, the box will be modal on it. (On Mac, it is |
| 23 // always app-modal.) Returns true if the Yes button was chosen. |
| 24 bool ShowYesNoBox(gfx::NativeWindow parent, |
| 25 const string16& title, |
| 26 const string16& message); |
| 27 |
| 28 } // namespace browser |
| 29 |
| 30 #endif // CHROME_BROWSER_SIMPLE_MESSAGE_BOX_H_ |
OLD | NEW |