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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_screen_win.cc

Issue 417503002: Remove dead code in desktop_screen_win.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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
« no previous file with comments | « no previous file | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/views/widget/desktop_aura/desktop_screen_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_screen_win.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/aura/window_event_dispatcher.h" 9 #include "ui/aura/window_event_dispatcher.h"
10 #include "ui/aura/window_tree_host.h" 10 #include "ui/aura/window_tree_host.h"
11 #include "ui/gfx/display.h" 11 #include "ui/gfx/display.h"
12 #include "ui/views/widget/desktop_aura/desktop_screen.h" 12 #include "ui/views/widget/desktop_aura/desktop_screen.h"
13 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" 13 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
14 14
15 namespace {
16
17 MONITORINFO GetMonitorInfoForMonitor(HMONITOR monitor) {
18 MONITORINFO monitor_info = { 0 };
19 monitor_info.cbSize = sizeof(monitor_info);
20 GetMonitorInfo(monitor, &monitor_info);
21 return monitor_info;
22 }
23
24 gfx::Display GetDisplay(MONITORINFO& monitor_info) {
25 // TODO(oshima): Implement ID and Observer.
26 gfx::Display display(0, gfx::Rect(monitor_info.rcMonitor));
27 display.set_work_area(gfx::Rect(monitor_info.rcWork));
28 return display;
29 }
30
31 } // namespace
32
33 namespace views { 15 namespace views {
34 16
35 //////////////////////////////////////////////////////////////////////////////// 17 ////////////////////////////////////////////////////////////////////////////////
36 // DesktopScreenWin, public: 18 // DesktopScreenWin, public:
37 19
38 DesktopScreenWin::DesktopScreenWin() { 20 DesktopScreenWin::DesktopScreenWin() {
39 } 21 }
40 22
41 DesktopScreenWin::~DesktopScreenWin() { 23 DesktopScreenWin::~DesktopScreenWin() {
42 } 24 }
(...skipping 20 matching lines...) Expand all
63 DesktopWindowTreeHostWin::GetContentWindowForHWND(hwnd) : NULL; 45 DesktopWindowTreeHostWin::GetContentWindowForHWND(hwnd) : NULL;
64 } 46 }
65 47
66 //////////////////////////////////////////////////////////////////////////////// 48 ////////////////////////////////////////////////////////////////////////////////
67 49
68 gfx::Screen* CreateDesktopScreen() { 50 gfx::Screen* CreateDesktopScreen() {
69 return new DesktopScreenWin; 51 return new DesktopScreenWin;
70 } 52 }
71 53
72 } // namespace views 54 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698