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

Side by Side Diff: views/screen_win.cc

Issue 328012: Makes it so that when a folder is open on the bookmark bar and the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/screen_gtk.cc ('k') | no next file » | 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
(...skipping 28 matching lines...) Expand all
39 HMONITOR monitor = MonitorFromPoint(initial_loc, MONITOR_DEFAULTTONEAREST); 39 HMONITOR monitor = MonitorFromPoint(initial_loc, MONITOR_DEFAULTTONEAREST);
40 if (!monitor) 40 if (!monitor)
41 return gfx::Rect(); 41 return gfx::Rect();
42 42
43 MONITORINFO mi = {0}; 43 MONITORINFO mi = {0};
44 mi.cbSize = sizeof(mi); 44 mi.cbSize = sizeof(mi);
45 GetMonitorInfo(monitor, &mi); 45 GetMonitorInfo(monitor, &mi);
46 return gfx::Rect(mi.rcMonitor); 46 return gfx::Rect(mi.rcMonitor);
47 } 47 }
48 48
49 gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() {
50 POINT location;
51 return GetCursorPos(&location) ? WindowFromPoint(location) : NULL;
52 }
53
49 } // namespace 54 } // namespace
50 55
OLDNEW
« no previous file with comments | « views/screen_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698