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

Side by Side Diff: ui/aura/monitor.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 7 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 | « ui/aura/monitor.h ('k') | ui/aura/monitor_change_observer_x11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/aura/monitor.h"
6
7 namespace aura {
8
9 Monitor::Monitor() : device_scale_factor_(1.0f) {
10 }
11
12 Monitor::~Monitor() {
13 }
14
15 gfx::Rect Monitor::GetWorkAreaBounds() const {
16 // TODO(oshima): For m19, work area/monitor bounds has (0,0) origin
17 // because it's simpler and enough. Fix this when real multi monitor
18 // support is implemented.
19 gfx::Rect bounds(bounds_.size());
20 bounds.Inset(work_area_insets_);
21 return bounds;
22 }
23
24 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/monitor.h ('k') | ui/aura/monitor_change_observer_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698