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

Unified Diff: views/widget/monitor_win.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/monitor_win.h ('k') | views/widget/native_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/monitor_win.cc
diff --git a/views/widget/monitor_win.cc b/views/widget/monitor_win.cc
deleted file mode 100644
index d840893e7f933d7781dc7c1edc627ec173016a1a..0000000000000000000000000000000000000000
--- a/views/widget/monitor_win.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "views/widget/monitor_win.h"
-
-#include <shellapi.h>
-
-#include "base/logging.h"
-#include "ui/gfx/rect.h"
-
-namespace views {
-
-gfx::Rect GetMonitorBoundsForRect(const gfx::Rect& rect) {
- RECT p_rect = rect.ToRECT();
- HMONITOR monitor = MonitorFromRect(&p_rect, MONITOR_DEFAULTTONEAREST);
- if (monitor) {
- MONITORINFO mi = {0};
- mi.cbSize = sizeof(mi);
- GetMonitorInfo(monitor, &mi);
- return gfx::Rect(mi.rcWork);
- }
- NOTREACHED();
- return gfx::Rect();
-}
-
-HWND GetTopmostAutoHideTaskbarForEdge(UINT edge, HMONITOR monitor) {
- APPBARDATA taskbar_data = { sizeof APPBARDATA, NULL, 0, edge };
- HWND taskbar = reinterpret_cast<HWND>(SHAppBarMessage(ABM_GETAUTOHIDEBAR,
- &taskbar_data));
- return (::IsWindow(taskbar) && (monitor != NULL) &&
- (MonitorFromWindow(taskbar, MONITOR_DEFAULTTONULL) == monitor) &&
- (GetWindowLong(taskbar, GWL_EXSTYLE) & WS_EX_TOPMOST)) ?
- taskbar : NULL;
-}
-
-} // namespace views
« no previous file with comments | « views/widget/monitor_win.h ('k') | views/widget/native_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698