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

Side by Side Diff: ui/gfx/test/test_screen.cc

Issue 1182303005: Fixed the Touchscreen.TouchEventsEnabled histogram to record the correct values on X11 and Ozone ba… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added logging.h include to device_data_manager_test_api_stub.cc. Created 5 years, 5 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/gfx/test/test_screen.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include <vector>
6
7 #include "ui/gfx/test/test_screen.h"
8
9 namespace gfx {
10 namespace test {
11
12 TestScreen::TestScreen() {
13 }
14
15 TestScreen::~TestScreen() {
16 }
17
18 gfx::Point TestScreen::GetCursorScreenPoint() {
19 return gfx::Point();
20 }
21
22 gfx::NativeWindow TestScreen::GetWindowUnderCursor() {
23 return nullptr;
24 }
25
26 gfx::NativeWindow TestScreen::GetWindowAtScreenPoint(const gfx::Point& point) {
27 return nullptr;
28 }
29
30 int TestScreen::GetNumDisplays() const {
31 return 1;
32 }
33
34 std::vector<gfx::Display> TestScreen::GetAllDisplays() const {
35 return std::vector<gfx::Display>(1, display_);
36 }
37
38 gfx::Display TestScreen::GetDisplayNearestWindow(gfx::NativeView view) const {
39 return display_;
40 }
41
42 gfx::Display TestScreen::GetDisplayNearestPoint(const gfx::Point& point) const {
43 return display_;
44 }
45
46 gfx::Display TestScreen::GetDisplayMatching(const gfx::Rect& match_rect) const {
47 return display_;
48 }
49
50 gfx::Display TestScreen::GetPrimaryDisplay() const {
51 return display_;
52 }
53
54 void TestScreen::AddObserver(gfx::DisplayObserver* observer) {
55 }
56
57 void TestScreen::RemoveObserver(gfx::DisplayObserver* observer) {
58 }
59
60 } // namespace test
61 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/test/test_screen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698