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

Side by Side Diff: ui/gfx/screen_android.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: fix command line Created 8 years, 8 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 #include "ui/gfx/screen.h" 5 #include "ui/gfx/screen.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/gfx/monitor.h"
8 9
9 namespace gfx { 10 namespace gfx {
10 11
11 // static 12 // static
12 gfx::Size Screen::GetPrimaryMonitorSize() { 13 const gfx::Monitor* Screen::GetPrimaryMonitor() {
14 static SimpleMonitor* monitor = new SimpleMonitor();
13 NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation"; 15 NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation";
14 return gfx::Size(1, 1); 16 return monitor;
15 } 17 }
16 18
17 // static 19 // static
18 int Screen::GetNumMonitors() { 20 int Screen::GetNumMonitors() {
19 return 1; 21 return 1;
20 } 22 }
21 23
22 } // namespace gfx 24 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698