OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_ | |
6 #define CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "ui/gfx/geometry/rect.h" | |
11 #include "ui/gfx/native_widget_types.h" | |
12 | |
13 namespace content { | |
14 | |
15 // Describes the new location for a plugin window. | |
16 struct WebPluginGeometry { | |
17 WebPluginGeometry(); | |
18 WebPluginGeometry(const WebPluginGeometry& other); | |
19 ~WebPluginGeometry(); | |
20 | |
21 bool Equals(const WebPluginGeometry& rhs) const; | |
22 | |
23 gfx::Rect window_rect; | |
24 // Clip rect (include) and cutouts (excludes), relative to | |
25 // window_rect origin. | |
26 gfx::Rect clip_rect; | |
27 std::vector<gfx::Rect> cutout_rects; | |
28 bool rects_valid; | |
29 bool visible; | |
30 }; | |
31 | |
32 } // namespace content | |
33 | |
34 #endif // CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_ | |
OLD | NEW |