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

Side by Side Diff: content/common/webplugin_geometry.cc

Issue 1815593002: Remove windowed NPAPI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_test_plugin_windowless
Patch Set: rebase Created 4 years, 9 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 | « content/common/webplugin_geometry.h ('k') | content/plugin/webplugin_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/webplugin_geometry.h" 5 #include "content/common/webplugin_geometry.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 WebPluginGeometry::WebPluginGeometry() 9 WebPluginGeometry::WebPluginGeometry()
10 : window(gfx::kNullPluginWindow), 10 : rects_valid(false),
11 rects_valid(false),
12 visible(false) { 11 visible(false) {
13 } 12 }
14 13
15 WebPluginGeometry::WebPluginGeometry(const WebPluginGeometry& other) = default; 14 WebPluginGeometry::WebPluginGeometry(const WebPluginGeometry& other) = default;
16 15
17 WebPluginGeometry::~WebPluginGeometry() { 16 WebPluginGeometry::~WebPluginGeometry() {
18 } 17 }
19 18
20 bool WebPluginGeometry::Equals(const WebPluginGeometry& rhs) const { 19 bool WebPluginGeometry::Equals(const WebPluginGeometry& rhs) const {
21 return window == rhs.window && 20 return window_rect == rhs.window_rect &&
22 window_rect == rhs.window_rect &&
23 clip_rect == rhs.clip_rect && 21 clip_rect == rhs.clip_rect &&
24 cutout_rects == rhs.cutout_rects && 22 cutout_rects == rhs.cutout_rects &&
25 rects_valid == rhs.rects_valid && 23 rects_valid == rhs.rects_valid &&
26 visible == rhs.visible; 24 visible == rhs.visible;
27 } 25 }
28 26
29 } // namespace content 27 } // namespace content
OLDNEW
« no previous file with comments | « content/common/webplugin_geometry.h ('k') | content/plugin/webplugin_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698