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