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

Side by Side Diff: ui/aura/test/test_screen.h

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: review fixes 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 #ifndef UI_AURA_TEST_TEST_SCREEN_H_ 5 #ifndef UI_AURA_TEST_TEST_SCREEN_H_
6 #define UI_AURA_TEST_TEST_SCREEN_H_ 6 #define UI_AURA_TEST_TEST_SCREEN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gfx/screen_impl.h" 9 #include "ui/gfx/screen.h"
10 10
11 namespace aura { 11 namespace aura {
12 class RootWindow; 12 class RootWindow;
13 13
14 // A minimal, testing Aura implementation of gfx::Screen. 14 // A minimal, testing Aura implementation of gfx::Screen.
15 class TestScreen : public gfx::ScreenImpl { 15 class TestScreen : public gfx::Screen {
16 public: 16 public:
17 explicit TestScreen(aura::RootWindow* root_window); 17 explicit TestScreen(aura::RootWindow* root_window);
18 virtual ~TestScreen(); 18 virtual ~TestScreen();
19 19
20 protected: 20 protected:
21 // gfx::ScreenImpl overrides: 21 // gfx::Screen overrides:
22 virtual bool IsDIPEnabled() OVERRIDE;
22 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; 23 virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
23 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE; 24 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE;
24 virtual int GetNumDisplays() OVERRIDE; 25 virtual int GetNumDisplays() OVERRIDE;
25 virtual gfx::Display GetDisplayNearestWindow( 26 virtual gfx::Display GetDisplayNearestWindow(
26 gfx::NativeView view) const OVERRIDE; 27 gfx::NativeView view) const OVERRIDE;
27 virtual gfx::Display GetDisplayNearestPoint( 28 virtual gfx::Display GetDisplayNearestPoint(
28 const gfx::Point& point) const OVERRIDE; 29 const gfx::Point& point) const OVERRIDE;
29 virtual gfx::Display GetDisplayMatching( 30 virtual gfx::Display GetDisplayMatching(
30 const gfx::Rect& match_rect) const OVERRIDE; 31 const gfx::Rect& match_rect) const OVERRIDE;
31 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; 32 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE;
32 33
33 private: 34 private:
34 gfx::Display GetMonitor() const; 35 gfx::Display GetMonitor() const;
35 36
36 aura::RootWindow* root_window_; 37 aura::RootWindow* root_window_;
37 38
38 DISALLOW_COPY_AND_ASSIGN(TestScreen); 39 DISALLOW_COPY_AND_ASSIGN(TestScreen);
39 }; 40 };
40 41
41 } // namespace aura 42 } // namespace aura
42 43
43 #endif // UI_AURA_TEST_TEST_SCREEN_H_ 44 #endif // UI_AURA_TEST_TEST_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698