[email protected] | 4e14389 | 2012-03-19 05:20:09 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 8e14284 | 2010-01-15 00:10:09 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 29e2fb4 | 2013-07-19 01:13:47 | [diff] [blame] | 5 | #include "content/common/webplugin_geometry.h" |
[email protected] | 8e14284 | 2010-01-15 00:10:09 | [diff] [blame] | 6 | |
[email protected] | 29e2fb4 | 2013-07-19 01:13:47 | [diff] [blame] | 7 | namespace content { |
[email protected] | 8e14284 | 2010-01-15 00:10:09 | [diff] [blame] | 8 | |
9 | WebPluginGeometry::WebPluginGeometry() | ||||
10 | : window(gfx::kNullPluginWindow), | ||||
11 | rects_valid(false), | ||||
12 | visible(false) { | ||||
13 | } | ||||
14 | |||||
vmpstr | 33895d99 | 2016-02-24 20:55:21 | [diff] [blame] | 15 | WebPluginGeometry::WebPluginGeometry(const WebPluginGeometry& other) = default; |
16 | |||||
[email protected] | d4799a3 | 2010-09-28 22:54:58 | [diff] [blame] | 17 | WebPluginGeometry::~WebPluginGeometry() { |
18 | } | ||||
19 | |||||
[email protected] | 8e14284 | 2010-01-15 00:10:09 | [diff] [blame] | 20 | bool WebPluginGeometry::Equals(const WebPluginGeometry& rhs) const { |
21 | return window == rhs.window && | ||||
22 | window_rect == rhs.window_rect && | ||||
23 | clip_rect == rhs.clip_rect && | ||||
24 | cutout_rects == rhs.cutout_rects && | ||||
25 | rects_valid == rhs.rects_valid && | ||||
26 | visible == rhs.visible; | ||||
27 | } | ||||
[email protected] | 7cf4091 | 2010-12-09 18:25:03 | [diff] [blame] | 28 | |
[email protected] | 29e2fb4 | 2013-07-19 01:13:47 | [diff] [blame] | 29 | } // namespace content |