OLD | NEW |
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 "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "ui/gfx/geometry/rect.h" |
11 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
12 #include "ui/gfx/rect.h" | |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 // Describes the new location for a plugin window. | 16 // Describes the new location for a plugin window. |
17 struct WebPluginGeometry { | 17 struct WebPluginGeometry { |
18 WebPluginGeometry(); | 18 WebPluginGeometry(); |
19 ~WebPluginGeometry(); | 19 ~WebPluginGeometry(); |
20 | 20 |
21 bool Equals(const WebPluginGeometry& rhs) const; | 21 bool Equals(const WebPluginGeometry& rhs) const; |
22 | 22 |
(...skipping 15 matching lines...) Expand all Loading... |
38 // window_rect origin. | 38 // window_rect origin. |
39 gfx::Rect clip_rect; | 39 gfx::Rect clip_rect; |
40 std::vector<gfx::Rect> cutout_rects; | 40 std::vector<gfx::Rect> cutout_rects; |
41 bool rects_valid; | 41 bool rects_valid; |
42 bool visible; | 42 bool visible; |
43 }; | 43 }; |
44 | 44 |
45 } // namespace content | 45 } // namespace content |
46 | 46 |
47 #endif // CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_ | 47 #endif // CONTENT_COMMON_WEBPLUGIN_GEOMETRY_H_ |
OLD | NEW |