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

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

Issue 1745024: Make a new yes/no messagebox wrapper function, use it in the bookmark alert.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
Property Changes:
Name: svn:mergeinfo
+
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_PLATFORM_UTIL_H_ 5 #ifndef CHROME_BROWSER_PLATFORM_UTIL_H_
6 #define CHROME_BROWSER_PLATFORM_UTIL_H_ 6 #define CHROME_BROWSER_PLATFORM_UTIL_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "gfx/native_widget_types.h" 9 #include "gfx/native_widget_types.h"
10 10
(...skipping 21 matching lines...) Expand all
32 // Activate the window, bringing it to the foreground top level. 32 // Activate the window, bringing it to the foreground top level.
33 void ActivateWindow(gfx::NativeWindow window); 33 void ActivateWindow(gfx::NativeWindow window);
34 34
35 // Returns true if the view is visible. The exact definition of this is 35 // Returns true if the view is visible. The exact definition of this is
36 // platform-specific, but it is generally not "visible to the user", rather 36 // platform-specific, but it is generally not "visible to the user", rather
37 // whether the view has the visible attribute set. 37 // whether the view has the visible attribute set.
38 bool IsVisible(gfx::NativeView view); 38 bool IsVisible(gfx::NativeView view);
39 39
40 // Pops up an error box with an OK button. If |parent| is non-null, the box 40 // Pops up an error box with an OK button. If |parent| is non-null, the box
41 // will be modal on it. (On Mac, it is always app-modal.) Generally speaking, 41 // will be modal on it. (On Mac, it is always app-modal.) Generally speaking,
42 // this class should not be used for much. Infobars are preferred. 42 // this function should not be used for much. Infobars are preferred.
43 void SimpleErrorBox(gfx::NativeWindow parent, 43 void SimpleErrorBox(gfx::NativeWindow parent,
44 const string16& title, 44 const string16& title,
45 const string16& message); 45 const string16& message);
46 46
47 // Pops up a dialog box with two buttons (Yes/No), with the default button of
48 // Yes. If |parent| is non-null, the box will be modal on it. (On Mac, it is
49 // always app-modal.) Returns true if the Yes button was chosen.
50 bool SimpleYesNoBox(gfx::NativeWindow parent,
51 const string16& title,
52 const string16& message);
53
47 // Return a human readable modifier for the version string. For a 54 // Return a human readable modifier for the version string. For a
48 // branded Chrome (not Chromium), this modifier is the channel (dev, 55 // branded Chrome (not Chromium), this modifier is the channel (dev,
49 // beta, but "" for stable). 56 // beta, but "" for stable).
50 string16 GetVersionStringModifier(); 57 string16 GetVersionStringModifier();
51 58
52 } 59 }
53 60
54 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ 61 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698