OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/platform_util.h" | 5 #include "chrome/browser/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 "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
17 #include "base/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/win/registry.h" | 18 #include "base/win/registry.h" |
19 #include "base/win/scoped_co_mem.h" | 19 #include "base/win/scoped_co_mem.h" |
20 #include "base/win/scoped_comptr.h" | 20 #include "base/win/scoped_comptr.h" |
21 #include "base/win/windows_version.h" | 21 #include "base/win/windows_version.h" |
22 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
24 #include "ui/base/win/shell.h" | 24 #include "ui/base/win/shell.h" |
25 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
26 | 26 |
27 using content::BrowserThread; | 27 using content::BrowserThread; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 ::SetForegroundWindow(window); | 194 ::SetForegroundWindow(window); |
195 } | 195 } |
196 | 196 |
197 bool IsVisible(gfx::NativeView view) { | 197 bool IsVisible(gfx::NativeView view) { |
198 // MSVC complains if we don't include != 0. | 198 // MSVC complains if we don't include != 0. |
199 return ::IsWindowVisible(view) != 0; | 199 return ::IsWindowVisible(view) != 0; |
200 } | 200 } |
201 #endif | 201 #endif |
202 | 202 |
203 } // namespace platform_util | 203 } // namespace platform_util |
OLD | NEW |