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

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

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/view_messages.h ('k') | content/common/webplugin_geometry.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_ 5 #ifndef CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_
6 #define CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_ 6 #define CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // Describes the new location for a plugin window. 15 // Describes the new location for a plugin window.
16 struct WebPluginGeometry { 16 struct WebPluginGeometry {
17 WebPluginGeometry(); 17 WebPluginGeometry();
18 WebPluginGeometry(const WebPluginGeometry& other); 18 WebPluginGeometry(const WebPluginGeometry& other);
19 ~WebPluginGeometry(); 19 ~WebPluginGeometry();
20 20
21 bool Equals(const WebPluginGeometry& rhs) const; 21 bool Equals(const WebPluginGeometry& rhs) const;
22 22
23 // On Windows, this is the plugin window in the plugin process.
24 // On X11, this is the XID of the plugin-side GtkPlug containing the
25 // GtkSocket hosting the actual plugin window.
26 //
27 // On Mac OS X, all of the plugin types are currently "windowless"
28 // (window == 0) except for the special case of the GPU plugin,
29 // which currently performs rendering on behalf of the Pepper 3D API
30 // and WebGL. The GPU plugin uses a simple integer for the
31 // PluginWindowHandle which is used to map to a side data structure
32 // containing information about the plugin. Soon this plugin will be
33 // generalized, at which point this mechanism will be rethought or
34 // removed.
35 gfx::PluginWindowHandle window;
36 gfx::Rect window_rect; 23 gfx::Rect window_rect;
37 // Clip rect (include) and cutouts (excludes), relative to 24 // Clip rect (include) and cutouts (excludes), relative to
38 // window_rect origin. 25 // window_rect origin.
39 gfx::Rect clip_rect; 26 gfx::Rect clip_rect;
40 std::vector<gfx::Rect> cutout_rects; 27 std::vector<gfx::Rect> cutout_rects;
41 bool rects_valid; 28 bool rects_valid;
42 bool visible; 29 bool visible;
43 }; 30 };
44 31
45 } // namespace content 32 } // namespace content
46 33
47 #endif // CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_ 34 #endif // CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/common/webplugin_geometry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698