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

Unified Diff: content/common/webplugin_geometry.h

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 side-by-side diff with in-line comments
Download patch
Index: content/common/webplugin_geometry.h
===================================================================
--- content/common/webplugin_geometry.h (revision 0)
+++ content/common/webplugin_geometry.h (revision 0)
@@ -0,0 +1,47 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_
+#define CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "ui/gfx/native_widget_types.h"
+#include "ui/gfx/rect.h"
+
+namespace content {
+
+// Describes the new location for a plugin window.
+struct WebPluginGeometry {
+ WebPluginGeometry();
+ ~WebPluginGeometry();
+
+ bool Equals(const WebPluginGeometry& rhs) const;
+
+ // On Windows, this is the plugin window in the plugin process.
+ // On X11, this is the XID of the plugin-side GtkPlug containing the
+ // GtkSocket hosting the actual plugin window.
+ //
+ // On Mac OS X, all of the plugin types are currently "windowless"
+ // (window == 0) except for the special case of the GPU plugin,
+ // which currently performs rendering on behalf of the Pepper 3D API
+ // and WebGL. The GPU plugin uses a simple integer for the
+ // PluginWindowHandle which is used to map to a side data structure
+ // containing information about the plugin. Soon this plugin will be
+ // generalized, at which point this mechanism will be rethought or
+ // removed.
+ gfx::PluginWindowHandle window;
+ gfx::Rect window_rect;
+ // Clip rect (include) and cutouts (excludes), relative to
+ // window_rect origin.
+ gfx::Rect clip_rect;
+ std::vector<gfx::Rect> cutout_rects;
+ bool rects_valid;
+ bool visible;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_
Property changes on: content\common\webplugin_geometry.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698