Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: chrome/common/win_util.h

Issue 66055: Don't reserve space for an auto-hide taskbar that's not always-on-top. Windo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/frame/browser_frame.cc ('k') | chrome/common/win_util.cc » ('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) 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // resized appropriately. 202 // resized appropriately.
203 void AdjustWindowToFit(HWND hwnd); 203 void AdjustWindowToFit(HWND hwnd);
204 204
205 // Sizes the window to have a client or window size (depending on the value of 205 // Sizes the window to have a client or window size (depending on the value of
206 // |pref_is_client|) of pref, then centers the window over parent, ensuring the 206 // |pref_is_client|) of pref, then centers the window over parent, ensuring the
207 // window fits on screen. 207 // window fits on screen.
208 void CenterAndSizeWindow(HWND parent, HWND window, const SIZE& pref, 208 void CenterAndSizeWindow(HWND parent, HWND window, const SIZE& pref,
209 bool pref_is_client); 209 bool pref_is_client);
210 210
211 // Returns true if edge |edge| (one of ABE_LEFT, TOP, RIGHT, or BOTTOM) of 211 // Returns true if edge |edge| (one of ABE_LEFT, TOP, RIGHT, or BOTTOM) of
212 // monitor |monitor| has an auto-hiding taskbar. 212 // monitor |monitor| has an auto-hiding taskbar that's always-on-top.
213 bool EdgeHasAutoHideTaskbar(UINT edge, HMONITOR monitor); 213 bool EdgeHasTopmostAutoHideTaskbar(UINT edge, HMONITOR monitor);
214 214
215 // Duplicates a section handle from another process to the current process. 215 // Duplicates a section handle from another process to the current process.
216 // Returns the new valid handle if the function succeed. NULL otherwise. 216 // Returns the new valid handle if the function succeed. NULL otherwise.
217 HANDLE GetSectionFromProcess(HANDLE section, HANDLE process, bool read_only); 217 HANDLE GetSectionFromProcess(HANDLE section, HANDLE process, bool read_only);
218 218
219 // Returns true if the specified window is the current active top window or one 219 // Returns true if the specified window is the current active top window or one
220 // of its children. 220 // of its children.
221 bool DoesWindowBelongToActiveWindow(HWND window); 221 bool DoesWindowBelongToActiveWindow(HWND window);
222 222
223 // Adjusts the value of |child_rect| if necessary to ensure that it is 223 // Adjusts the value of |child_rect| if necessary to ensure that it is
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 // Returns the system set window title font. 275 // Returns the system set window title font.
276 ChromeFont GetWindowTitleFont(); 276 ChromeFont GetWindowTitleFont();
277 277
278 // The thickness of an auto-hide taskbar in pixels. 278 // The thickness of an auto-hide taskbar in pixels.
279 extern const int kAutoHideTaskbarThicknessPx; 279 extern const int kAutoHideTaskbarThicknessPx;
280 280
281 } // namespace win_util 281 } // namespace win_util
282 282
283 #endif // CHROME_COMMON_WIN_UTIL_H_ 283 #endif // CHROME_COMMON_WIN_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_frame.cc ('k') | chrome/common/win_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698