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

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

Issue 9689027: MonitorManager to manage multiple monitors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: crash fix Created 8 years, 9 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/env.cc ('k') | ui/aura/monitor.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 #ifndef UI_AURA_MONITOR_H_
6 #define UI_AURA_MONITOR_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "ui/aura/aura_export.h"
11 #include "ui/gfx/insets.h"
12 #include "ui/gfx/rect.h"
13
14 namespace aura {
15
16 class AURA_EXPORT Monitor {
17 public:
18 Monitor();
19
20 // Set/gets monitor's bounds in screen's coordinates.
Ben Goodger (Google) 2012/03/13 19:28:12 what does it mean to set the monitor's bounds in s
oshima 2012/03/13 20:06:37 By screen, I meant the coordinate system used by "
21 void set_bounds(gfx::Rect& bounds) { bounds_ = bounds;}
22 const gfx::Rect& bounds() const { return bounds_; };
23
24 // Set/gets monitor's workarea insets.
25 void set_work_area_insets(const gfx::Insets& insets) {
26 work_area_insets_ = insets;
27 }
28 const gfx::Insets& work_area_insets() const { return work_area_insets_; }
29
30 // Returns the monitor's size.
31 const gfx::Size& size() const { return bounds_.size(); }
32
33 // Returns the monitor's work area.
34 gfx::Rect GetWorkAreaBounds() const;
35
36 private:
37 // Insets for the work area.
38 gfx::Insets work_area_insets_;
39
40 gfx::Rect bounds_;
41
42 DISALLOW_COPY_AND_ASSIGN(Monitor);
43 };
44
45 } // namespace aura
46
47 #endif // UI_AURA_MONITOR_H_
OLDNEW
« no previous file with comments | « ui/aura/env.cc ('k') | ui/aura/monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698