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

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

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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
« no previous file with comments | « ui/display/test/display_matchers.cc ('k') | ui/display/types/display_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DISPLAY_TEST_TEST_SCREEN_H_ 5 #ifndef UI_DISPLAY_TEST_TEST_SCREEN_H_
6 #define UI_DISPLAY_TEST_TEST_SCREEN_H_ 6 #define UI_DISPLAY_TEST_TEST_SCREEN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/display/display.h" 11 #include "ui/display/display.h"
12 #include "ui/display/screen_base.h" 12 #include "ui/display/screen_base.h"
13 13
14 namespace display { 14 namespace display {
15 namespace test { 15 namespace test {
16 16
17 // A dummy implementation of display::Screen that contains a single 17 // A dummy implementation of Screen that contains a single
18 // display::Display only. The contained Display can be accessed and modified via 18 // Display only. The contained Display can be accessed and modified via
19 // TestScreen::display(). 19 // TestScreen::display().
20 // 20 //
21 // NOTE: Adding and removing display::DisplayOberver's are no-ops and observers 21 // NOTE: Adding and removing DisplayOberver's are no-ops and observers
22 // will NOT be notified ever. 22 // will NOT be notified ever.
23 class TestScreen : public ScreenBase { 23 class TestScreen : public ScreenBase {
24 public: 24 public:
25 TestScreen(); 25 TestScreen();
26 ~TestScreen() override; 26 ~TestScreen() override;
27 27
28 // display::Screen: 28 // Screen:
29 gfx::Point GetCursorScreenPoint() override; 29 gfx::Point GetCursorScreenPoint() override;
30 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 30 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
31 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 31 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
32 Display GetDisplayNearestWindow(gfx::NativeView view) const override; 32 Display GetDisplayNearestWindow(gfx::NativeView view) const override;
33 33
34 private: 34 private:
35 DISALLOW_COPY_AND_ASSIGN(TestScreen); 35 DISALLOW_COPY_AND_ASSIGN(TestScreen);
36 }; 36 };
37 37
38 } // namespace test 38 } // namespace test
39 } // namespace display 39 } // namespace display
40 40
41 #endif // UI_DISPLAY_TEST_TEST_SCREEN_H_ 41 #endif // UI_DISPLAY_TEST_TEST_SCREEN_H_
OLDNEW
« no previous file with comments | « ui/display/test/display_matchers.cc ('k') | ui/display/types/display_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698