OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "content/common/webplugin_geometry.h" | |
6 | |
7 namespace content { | |
8 | |
9 WebPluginGeometry::WebPluginGeometry() | |
10 : rects_valid(false), | |
11 visible(false) { | |
12 } | |
13 | |
14 WebPluginGeometry::WebPluginGeometry(const WebPluginGeometry& other) = default; | |
15 | |
16 WebPluginGeometry::~WebPluginGeometry() { | |
17 } | |
18 | |
19 bool WebPluginGeometry::Equals(const WebPluginGeometry& rhs) const { | |
20 return window_rect == rhs.window_rect && | |
21 clip_rect == rhs.clip_rect && | |
22 cutout_rects == rhs.cutout_rects && | |
23 rects_valid == rhs.rects_valid && | |
24 visible == rhs.visible; | |
25 } | |
26 | |
27 } // namespace content | |
OLD | NEW |