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

Side by Side Diff: views/screen_win.cc

Issue 160474: Status bubble limping in TOOLKIT_VIEWS.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « views/screen_gtk.cc ('k') | views/widget/root_view.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 "views/screen.h" 5 #include "views/screen.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 namespace views { 9 namespace views {
10 10
11 // static 11 // static
12 gfx::Point Screen::GetCursorScreenPoint() { 12 gfx::Point Screen::GetCursorScreenPoint() {
13 POINT pt; 13 POINT pt;
14 GetCursorPos(&pt); 14 GetCursorPos(&pt);
15 return gfx::Point(pt); 15 return gfx::Point(pt);
16 } 16 }
17 17
18 // static
19 gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeWindow window) {
20 MONITORINFO monitor_info;
21 monitor_info.cbSize = sizeof(monitor_info);
22 GetMonitorInfo(MonitorFromWindow(window, MONITOR_DEFAULTTONEAREST),
23 &monitor_info);
24 return gfx::Rect(monitor_info.rcWork);
25 }
26
18 } // namespace 27 } // namespace
19 28
OLDNEW
« no previous file with comments | « views/screen_gtk.cc ('k') | views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698