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

Side by Side Diff: content/public/common/screen_info.cc

Issue 2317563004: Change blink::WebScreenInfo to content::ScreenInfo (Closed)
Patch Set: Fix Windows compile Created 4 years, 3 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 #include "content/public/common/screen_info.h"
6
7 namespace content {
8
9 bool ScreenInfo::operator==(const ScreenInfo& other) const {
10 return device_scale_factor == other.device_scale_factor &&
11 depth == other.depth &&
12 depth_per_component == other.depth_per_component &&
13 is_monochrome == other.is_monochrome &&
14 rect == other.rect &&
15 available_rect == other.available_rect &&
16 orientation_type == other.orientation_type &&
17 orientation_angle == other.orientation_angle;
18 }
19
20 bool ScreenInfo::operator!=(const ScreenInfo& other) const {
21 return !(*this == other);
22 }
23
24
25 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698