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

Side by Side Diff: chrome/browser/simple_message_box.h

Issue 7601014: browser: Abstract message box dialog functions into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile on linux_view? Created 9 years, 4 months 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
« no previous file with comments | « chrome/browser/process_singleton_win.cc ('k') | chrome/browser/speech/speech_input_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/browser/process_singleton_win.cc ('k') | chrome/browser/speech/speech_input_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698