OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Returns the bounds of the element in Visual Viewport. The bounds | 73 // Returns the bounds of the element in Visual Viewport. The bounds |
74 // have been adjusted to include any transformations, including page scale. | 74 // have been adjusted to include any transformations, including page scale. |
75 // This function will update the layout if required. | 75 // This function will update the layout if required. |
76 BLINK_EXPORT WebRect boundsInViewport() const; | 76 BLINK_EXPORT WebRect boundsInViewport() const; |
77 | 77 |
78 // Returns the image contents of this element or a null WebImage | 78 // Returns the image contents of this element or a null WebImage |
79 // if there isn't any. | 79 // if there isn't any. |
80 BLINK_EXPORT WebImage imageContents(); | 80 BLINK_EXPORT WebImage imageContents(); |
81 | 81 |
82 #if BLINK_IMPLEMENTATION | 82 #if BLINK_IMPLEMENTATION |
83 BLINK_EXPORT WebElement(const RawPtr<Element>&); | 83 BLINK_EXPORT WebElement(Element*); |
84 BLINK_EXPORT WebElement& operator=(const RawPtr<Element>&); | 84 BLINK_EXPORT WebElement& operator=(Element*); |
85 BLINK_EXPORT operator RawPtr<Element>() const; | 85 BLINK_EXPORT operator Element*() const; |
86 #endif | 86 #endif |
87 }; | 87 }; |
88 | 88 |
89 DECLARE_WEB_NODE_TYPE_CASTS(WebElement); | 89 DECLARE_WEB_NODE_TYPE_CASTS(WebElement); |
90 | 90 |
91 } // namespace blink | 91 } // namespace blink |
92 | 92 |
93 #endif | 93 #endif |
OLD | NEW |