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

Side by Side Diff: ui/gfx/test/display_util.h

Issue 1639623003: ScreenWin Testability and Restructuring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to bdd95f1 Created 4 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2016 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 #ifndef UI_GFX_TEST_DISPLAY_UTIL_H_
6 #define UI_GFX_TEST_DISPLAY_UTIL_H_
7
8 #include "ui/gfx/display.h"
9
10 namespace gfx {
oshima 2016/01/30 00:10:33 namespace test namespace is meaningless for oper
robliao 2016/01/30 01:23:52 Oddly enough, it does matter. http://stackoverflo
oshima 2016/02/01 19:07:37 interesting, thanks for the pointer.
11
12 inline bool operator==(const gfx::Display& lhs, const gfx::Display& rhs) {
13 return lhs.id() == rhs.id() &&
14 lhs.bounds() == rhs.bounds() &&
15 lhs.work_area() == rhs.work_area() &&
16 lhs.device_scale_factor() == rhs.device_scale_factor() &&
17 lhs.rotation() == rhs.rotation() &&
18 lhs.touch_support() == rhs.touch_support();
19 }
20
21 } // namespace gfx
22
23 #endif // UI_GFX_TEST_DISPLAY_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698