summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/win_util.cc12
-rw-r--r--chrome/common/win_util.h7
2 files changed, 0 insertions, 19 deletions
diff --git a/chrome/common/win_util.cc b/chrome/common/win_util.cc
index 50850d1..7437031 100644
--- a/chrome/common/win_util.cc
+++ b/chrome/common/win_util.cc
@@ -28,8 +28,6 @@
namespace win_util {
-const int kAutoHideTaskbarThicknessPx = 2;
-
namespace {
// Enforce visible dialog box.
@@ -626,16 +624,6 @@ void CenterAndSizeWindow(HWND parent, HWND window, const SIZE& pref,
}
}
-bool EdgeHasAutoHideTaskbar(UINT edge, HMONITOR monitor) {
- APPBARDATA taskbar_data = { 0 };
- taskbar_data.cbSize = sizeof APPBARDATA;
- taskbar_data.uEdge = edge;
- HWND taskbar = reinterpret_cast<HWND>(SHAppBarMessage(ABM_GETAUTOHIDEBAR,
- &taskbar_data));
- return ::IsWindow(taskbar) &&
- (MonitorFromWindow(taskbar, MONITOR_DEFAULTTONEAREST) == monitor);
-}
-
HANDLE GetSectionFromProcess(HANDLE section, HANDLE process, bool read_only) {
HANDLE valid_section = NULL;
DWORD access = STANDARD_RIGHTS_REQUIRED | FILE_MAP_READ;
diff --git a/chrome/common/win_util.h b/chrome/common/win_util.h
index 8e703cb..c93b098 100644
--- a/chrome/common/win_util.h
+++ b/chrome/common/win_util.h
@@ -211,10 +211,6 @@ void AdjustWindowToFit(HWND hwnd);
void CenterAndSizeWindow(HWND parent, HWND window, const SIZE& pref,
bool pref_is_client);
-// Returns true if edge |edge| (one of ABE_LEFT, TOP, RIGHT, or BOTTOM) of
-// monitor |monitor| has an auto-hiding taskbar.
-bool EdgeHasAutoHideTaskbar(UINT edge, HMONITOR monitor);
-
// Duplicates a section handle from another process to the current process.
// Returns the new valid handle if the function succeed. NULL otherwise.
HANDLE GetSectionFromProcess(HANDLE section, HANDLE process, bool read_only);
@@ -278,9 +274,6 @@ int MessageBox(HWND hwnd,
// Returns the system set window title font.
ChromeFont GetWindowTitleFont();
-// The thickness of an auto-hide taskbar in pixels.
-extern const int kAutoHideTaskbarThicknessPx;
-
} // namespace win_util
#endif // CHROME_COMMON_WIN_UTIL_H_