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

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

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 7 years, 5 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 | Annotate | Revision Log
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 "webkit/plugins/npapi/webplugin.h" 5 #include "content/common/webplugin_geometry.h"
6 6
7 namespace webkit { 7 namespace content {
8 namespace npapi {
9 8
10 WebPluginGeometry::WebPluginGeometry() 9 WebPluginGeometry::WebPluginGeometry()
11 : window(gfx::kNullPluginWindow), 10 : window(gfx::kNullPluginWindow),
12 rects_valid(false), 11 rects_valid(false),
13 visible(false) { 12 visible(false) {
14 } 13 }
15 14
16 WebPluginGeometry::~WebPluginGeometry() { 15 WebPluginGeometry::~WebPluginGeometry() {
17 } 16 }
18 17
19 bool WebPluginGeometry::Equals(const WebPluginGeometry& rhs) const { 18 bool WebPluginGeometry::Equals(const WebPluginGeometry& rhs) const {
20 return window == rhs.window && 19 return window == rhs.window &&
21 window_rect == rhs.window_rect && 20 window_rect == rhs.window_rect &&
22 clip_rect == rhs.clip_rect && 21 clip_rect == rhs.clip_rect &&
23 cutout_rects == rhs.cutout_rects && 22 cutout_rects == rhs.cutout_rects &&
24 rects_valid == rhs.rects_valid && 23 rects_valid == rhs.rects_valid &&
25 visible == rhs.visible; 24 visible == rhs.visible;
26 } 25 }
27 26
28 } // namespace npapi 27 } // namespace content
29 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698