Chromium Code Reviews

Side by Side Diff: chrome/common/platform_util_win.cc

Issue 273017: Move native_widget_types and gtk_native_view_id_manager from base/gfx to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/common/platform_util.h ('k') | chrome/common/plugin_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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...)
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
OLDNEW
« no previous file with comments | « chrome/common/platform_util.h ('k') | chrome/common/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine