| 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" | |
| 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 Loading... |
| 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_ |
| OLD | NEW |