OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 PPAPI_CPP_VIEW_H_ | 5 #ifndef PPAPI_CPP_VIEW_H_ |
6 #define PPAPI_CPP_VIEW_H_ | 6 #define PPAPI_CPP_VIEW_H_ |
7 | 7 |
8 #include "ppapi/cpp/resource.h" | 8 #include "ppapi/cpp/resource.h" |
9 #include "ppapi/cpp/rect.h" | 9 #include "ppapi/cpp/rect.h" |
10 #include "ppapi/cpp/size.h" | 10 #include "ppapi/cpp/size.h" |
11 | 11 |
| 12 /// @file |
| 13 /// This file defines the API for getting the state of a the view for an |
| 14 /// instance. |
| 15 |
12 namespace pp { | 16 namespace pp { |
13 | 17 |
| 18 /// This class represents the state of the view for an instance and contains |
| 19 /// functions for retrieving the current state of that view. |
14 class View : public Resource { | 20 class View : public Resource { |
15 public: | 21 public: |
16 /// Default constructor for creating an is_null() <code>View</code> object. | 22 /// Default constructor for creating an is_null() <code>View</code> object. |
17 View(); | 23 View(); |
18 | 24 |
19 /// Creates a View resource, taking and holding an additional reference to | 25 /// Creates a View resource, taking and holding an additional reference to |
20 /// the given resource handle. | 26 /// the given resource handle. |
21 View(PP_Resource view_resource); | 27 View(PP_Resource view_resource); |
22 | 28 |
23 /// <code>GetRect()</code> returns the rectangle of the instance | 29 /// <code>GetRect()</code> returns the rectangle of the instance |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 /// happens. | 111 /// happens. |
106 /// | 112 /// |
107 /// @return The rectangle representing the visible part of the instance. | 113 /// @return The rectangle representing the visible part of the instance. |
108 /// If the resource is invalid, the empty rect is returned. | 114 /// If the resource is invalid, the empty rect is returned. |
109 Rect GetClipRect() const; | 115 Rect GetClipRect() const; |
110 }; | 116 }; |
111 | 117 |
112 } // namespace pp | 118 } // namespace pp |
113 | 119 |
114 #endif // PPAPI_CPP_VIEW_H_ | 120 #endif // PPAPI_CPP_VIEW_H_ |
OLD | NEW |