| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_WIN_UTIL_H_ | 5 #ifndef CHROME_COMMON_WIN_UTIL_H_ |
| 6 #define CHROME_COMMON_WIN_UTIL_H_ | 6 #define CHROME_COMMON_WIN_UTIL_H_ |
| 7 | 7 |
| 8 #include <objbase.h> | 8 #include <objbase.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 const POINT& current, | 108 const POINT& current, |
| 109 DWORD elapsed_time); | 109 DWORD elapsed_time); |
| 110 | 110 |
| 111 // Returns true if the current point is far enough from the origin that it | 111 // Returns true if the current point is far enough from the origin that it |
| 112 // would be considered a drag. | 112 // would be considered a drag. |
| 113 bool IsDrag(const POINT& origin, const POINT& current); | 113 bool IsDrag(const POINT& origin, const POINT& current); |
| 114 | 114 |
| 115 // Returns true if we are on Windows Vista and composition is enabled | 115 // Returns true if we are on Windows Vista and composition is enabled |
| 116 bool ShouldUseVistaFrame(); | 116 bool ShouldUseVistaFrame(); |
| 117 | 117 |
| 118 // Open a Windows explorer window with the specified file highlighted. | |
| 119 void ShowItemInFolder(const std::wstring& full_path); | |
| 120 | |
| 121 // Open or run a file via the Windows shell. In the event that there is no | 118 // Open or run a file via the Windows shell. In the event that there is no |
| 122 // default application registered for the file specified by 'full_path', | 119 // default application registered for the file specified by 'full_path', |
| 123 // ask the user, via the Windows "Open With" dialog, for an application to use | 120 // ask the user, via the Windows "Open With" dialog, for an application to use |
| 124 // if 'ask_for_app' is true. | 121 // if 'ask_for_app' is true. |
| 125 // Returns 'true' on successful open, 'false' otherwise. | 122 // Returns 'true' on successful open, 'false' otherwise. |
| 126 bool OpenItemViaShell(const FilePath& full_path, bool ask_for_app); | 123 bool OpenItemViaShell(const FilePath& full_path, bool ask_for_app); |
| 127 | 124 |
| 128 // The download manager now writes the alternate data stream with the | 125 // The download manager now writes the alternate data stream with the |
| 129 // zone on all downloads. This function is equivalent to OpenItemViaShell | 126 // zone on all downloads. This function is equivalent to OpenItemViaShell |
| 130 // without showing the zone warning dialog. | 127 // without showing the zone warning dialog. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 274 |
| 278 // Returns the system set window title font. | 275 // Returns the system set window title font. |
| 279 ChromeFont GetWindowTitleFont(); | 276 ChromeFont GetWindowTitleFont(); |
| 280 | 277 |
| 281 // The thickness of an auto-hide taskbar in pixels. | 278 // The thickness of an auto-hide taskbar in pixels. |
| 282 extern const int kAutoHideTaskbarThicknessPx; | 279 extern const int kAutoHideTaskbarThicknessPx; |
| 283 | 280 |
| 284 } // namespace win_util | 281 } // namespace win_util |
| 285 | 282 |
| 286 #endif // CHROME_COMMON_WIN_UTIL_H_ | 283 #endif // CHROME_COMMON_WIN_UTIL_H_ |
| OLD | NEW |