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

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

Issue 479006: re-apply r34183... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/common/gtk_util.cc ('k') | chrome/common/platform_util_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_PLATFORM_UTIL_H_ 5 #ifndef CHROME_COMMON_PLATFORM_UTIL_H_
6 #define CHROME_COMMON_PLATFORM_UTIL_H_ 6 #define CHROME_COMMON_PLATFORM_UTIL_H_
7 7
8 #include "app/gfx/native_widget_types.h" 8 #include "app/gfx/native_widget_types.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "chrome/common/renderer_preferences.h"
11 10
12 class FilePath; 11 class FilePath;
13 class GURL; 12 class GURL;
14 13
15 namespace platform_util { 14 namespace platform_util {
16 15
17 // Show the given file in a file manager. If possible, select the file. 16 // Show the given file in a file manager. If possible, select the file.
18 void ShowItemInFolder(const FilePath& full_path); 17 void ShowItemInFolder(const FilePath& full_path);
19 18
20 // Open the given file in the desktop's default manner. 19 // Open the given file in the desktop's default manner.
(...skipping 17 matching lines...) Expand all
38 // whether the view has the visible attribute set. 37 // whether the view has the visible attribute set.
39 bool IsVisible(gfx::NativeView view); 38 bool IsVisible(gfx::NativeView view);
40 39
41 // 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
42 // 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,
43 // this class should not be used for much. Infobars are preferred. 42 // this class should not be used for much. Infobars are preferred.
44 void SimpleErrorBox(gfx::NativeWindow parent, 43 void SimpleErrorBox(gfx::NativeWindow parent,
45 const string16& title, 44 const string16& title,
46 const string16& message); 45 const string16& message);
47 46
48 RendererPreferences GetInitedRendererPreferences();
49
50 } 47 }
51 48
52 #endif // CHROME_COMMON_PLATFORM_UTIL_H_ 49 #endif // CHROME_COMMON_PLATFORM_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/common/gtk_util.cc ('k') | chrome/common/platform_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698