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

Side by Side Diff: ui/gfx/screen_android.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix other os's Created 8 years, 2 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/display.h" 8 #include "ui/gfx/display.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 11
12 // static 12 // static
13 bool Screen::IsDIPEnabled() { 13 bool Screen::IsDIPEnabled() {
14 return false; 14 return false;
15 } 15 }
16 16
17 // static 17 // static
18 gfx::Display Screen::GetPrimaryDisplay() { 18 gfx::Display Screen::GetPrimaryDisplay(gfx::NativeView context) {
19 NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation"; 19 NOTIMPLEMENTED() << "crbug.com/117839 tracks implementation";
20 return gfx::Display(0, gfx::Rect(0, 0, 1, 1)); 20 return gfx::Display(0, gfx::Rect(0, 0, 1, 1));
21 } 21 }
22 22
23 // static 23 // static
24 gfx::Display Screen::GetDisplayNearestWindow(gfx::NativeView view) { 24 gfx::Display Screen::GetDisplayNearestWindow(gfx::NativeView view) {
25 return GetPrimaryDisplay(); 25 return GetPrimaryDisplay(view);
26 } 26 }
27 27
28 // static 28 // static
29 gfx::Display Screen::GetDisplayNearestPoint(const gfx::Point& point) { 29 gfx::Display Screen::GetDisplayNearestPoint(
30 return GetPrimaryDisplay(); 30 gfx::NativeView context, const gfx::Point& point) {
31 return GetPrimaryDisplay(context);
31 } 32 }
32 33
33 int Screen::GetNumDisplays() { 34 int Screen::GetNumDisplays(gfx::NativeView context) {
34 return 1; 35 return 1;
35 } 36 }
36 37
37 } // namespace gfx 38 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698