OLD | NEW |
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" | 10 #include "chrome/common/renderer_preferences.h" |
| 11 #include "chrome/browser/profile.h" |
11 | 12 |
12 class FilePath; | 13 class FilePath; |
13 class GURL; | 14 class GURL; |
14 | 15 |
15 namespace platform_util { | 16 namespace platform_util { |
16 | 17 |
17 // Show the given file in a file manager. If possible, select the file. | 18 // Show the given file in a file manager. If possible, select the file. |
18 void ShowItemInFolder(const FilePath& full_path); | 19 void ShowItemInFolder(const FilePath& full_path); |
19 | 20 |
20 // Open the given file in the desktop's default manner. | 21 // Open the given file in the desktop's default manner. |
(...skipping 17 matching lines...) Expand all Loading... |
38 // whether the view has the visible attribute set. | 39 // whether the view has the visible attribute set. |
39 bool IsVisible(gfx::NativeView view); | 40 bool IsVisible(gfx::NativeView view); |
40 | 41 |
41 // Pops up an error box with an OK button. If |parent| is non-null, the box | 42 // 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, | 43 // 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. | 44 // this class should not be used for much. Infobars are preferred. |
44 void SimpleErrorBox(gfx::NativeWindow parent, | 45 void SimpleErrorBox(gfx::NativeWindow parent, |
45 const string16& title, | 46 const string16& title, |
46 const string16& message); | 47 const string16& message); |
47 | 48 |
48 RendererPreferences GetInitedRendererPreferences(); | 49 RendererPreferences GetInitedRendererPreferences(Profile* profile); |
49 | 50 |
50 } | 51 } |
51 | 52 |
52 #endif // CHROME_COMMON_PLATFORM_UTIL_H_ | 53 #endif // CHROME_COMMON_PLATFORM_UTIL_H_ |
OLD | NEW |