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

Side by Side Diff: chrome/browser/ui/window_sizer.h

Issue 10540123: Rename gfx::Screen::GetMonitorXXXX to gfx::Screen::GetDisplayXXX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
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 #ifndef CHROME_BROWSER_UI_WINDOW_SIZER_H_ 5 #ifndef CHROME_BROWSER_UI_WINDOW_SIZER_H_
6 #define CHROME_BROWSER_UI_WINDOW_SIZER_H_ 6 #define CHROME_BROWSER_UI_WINDOW_SIZER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 class Browser; 13 class Browser;
14 14
15 // An interface implemented by an object that can retrieve information about 15 // An interface implemented by an object that can retrieve information about
16 // the monitors on the system. 16 // the monitors on the system.
17 class MonitorInfoProvider { 17 class MonitorInfoProvider {
18 public: 18 public:
19 virtual ~MonitorInfoProvider() {} 19 virtual ~MonitorInfoProvider() {}
20 20
21 // Returns the bounds of the work area of the primary monitor. 21 // Returns the bounds of the work area of the primary monitor.
22 virtual gfx::Rect GetPrimaryMonitorWorkArea() const = 0; 22 virtual gfx::Rect GetPrimaryDisplayWorkArea() const = 0;
23 23
24 // Returns the bounds of the primary monitor. 24 // Returns the bounds of the primary monitor.
25 virtual gfx::Rect GetPrimaryMonitorBounds() const = 0; 25 virtual gfx::Rect GetPrimaryDisplayBounds() const = 0;
26 26
27 // Returns the bounds of the work area of the monitor that most closely 27 // Returns the bounds of the work area of the monitor that most closely
28 // intersects the provided bounds. 28 // intersects the provided bounds.
29 virtual gfx::Rect GetMonitorWorkAreaMatching( 29 virtual gfx::Rect GetMonitorWorkAreaMatching(
30 const gfx::Rect& match_rect) const = 0; 30 const gfx::Rect& match_rect) const = 0;
31 }; 31 };
32 32
33 /////////////////////////////////////////////////////////////////////////////// 33 ///////////////////////////////////////////////////////////////////////////////
34 // WindowSizer 34 // WindowSizer
35 // 35 //
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 scoped_ptr<StateProvider> state_provider_; 148 scoped_ptr<StateProvider> state_provider_;
149 scoped_ptr<MonitorInfoProvider> monitor_info_provider_; 149 scoped_ptr<MonitorInfoProvider> monitor_info_provider_;
150 150
151 // Note that this browser handle might be NULL. 151 // Note that this browser handle might be NULL.
152 const Browser* browser_; 152 const Browser* browser_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(WindowSizer); 154 DISALLOW_COPY_AND_ASSIGN(WindowSizer);
155 }; 155 };
156 156
157 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_H_ 157 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc ('k') | chrome/browser/ui/window_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698