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 "base/gfx/native_widget_types.h" | 8 #include "app/gfx/native_widget_types.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 | 10 |
11 class FilePath; | 11 class FilePath; |
12 class GURL; | 12 class GURL; |
13 | 13 |
14 namespace platform_util { | 14 namespace platform_util { |
15 | 15 |
16 // 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. |
17 void ShowItemInFolder(const FilePath& full_path); | 17 void ShowItemInFolder(const FilePath& full_path); |
18 | 18 |
(...skipping 14 matching lines...) Expand all Loading... |
33 bool IsWindowActive(gfx::NativeWindow window); | 33 bool IsWindowActive(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 } | 40 } |
41 | 41 |
42 #endif // CHROME_COMMON_PLATFORM_UTIL_H_ | 42 #endif // CHROME_COMMON_PLATFORM_UTIL_H_ |
OLD | NEW |