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 #include "chrome/common/platform_util.h" | 5 #include "chrome/common/platform_util.h" |
6 | 6 |
7 #include <commdlg.h> | 7 #include <commdlg.h> |
8 #include <dwmapi.h> | 8 #include <dwmapi.h> |
9 #include <shellapi.h> | 9 #include <shellapi.h> |
10 #include <shlobj.h> | 10 #include <shlobj.h> |
11 | 11 |
| 12 #include "app/gfx/native_widget_types.h" |
12 #include "app/win_util.h" | 13 #include "app/win_util.h" |
13 #include "base/file_path.h" | 14 #include "base/file_path.h" |
14 #include "base/file_util.h" | 15 #include "base/file_util.h" |
15 #include "base/gfx/native_widget_types.h" | |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/registry.h" | 17 #include "base/registry.h" |
18 #include "base/scoped_comptr_win.h" | 18 #include "base/scoped_comptr_win.h" |
19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 | 21 |
22 namespace platform_util { | 22 namespace platform_util { |
23 | 23 |
24 void ShowItemInFolder(const FilePath& full_path) { | 24 void ShowItemInFolder(const FilePath& full_path) { |
25 FilePath dir = full_path.DirName(); | 25 FilePath dir = full_path.DirName(); |
(...skipping 119 matching lines...) Loading... |
145 bool IsWindowActive(gfx::NativeWindow window) { | 145 bool IsWindowActive(gfx::NativeWindow window) { |
146 return ::GetForegroundWindow() == window; | 146 return ::GetForegroundWindow() == window; |
147 } | 147 } |
148 | 148 |
149 bool IsVisible(gfx::NativeView view) { | 149 bool IsVisible(gfx::NativeView view) { |
150 // MSVC complains if we don't include != 0. | 150 // MSVC complains if we don't include != 0. |
151 return ::IsWindowVisible(view) != 0; | 151 return ::IsWindowVisible(view) != 0; |
152 } | 152 } |
153 | 153 |
154 } // namespace platform_util | 154 } // namespace platform_util |
OLD | NEW |