| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value
); | 63 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value
); |
| 64 BLINK_EXPORT WebString textContent() const; | 64 BLINK_EXPORT WebString textContent() const; |
| 65 BLINK_EXPORT void requestFullScreen(); | 65 BLINK_EXPORT void requestFullScreen(); |
| 66 BLINK_EXPORT WebString attributeLocalName(unsigned index) const; | 66 BLINK_EXPORT WebString attributeLocalName(unsigned index) const; |
| 67 BLINK_EXPORT WebString attributeValue(unsigned index) const; | 67 BLINK_EXPORT WebString attributeValue(unsigned index) const; |
| 68 BLINK_EXPORT unsigned attributeCount() const; | 68 BLINK_EXPORT unsigned attributeCount() const; |
| 69 | 69 |
| 70 // If this element takes up space in the layout of the page. | 70 // If this element takes up space in the layout of the page. |
| 71 BLINK_EXPORT bool hasNonEmptyLayoutSize() const; | 71 BLINK_EXPORT bool hasNonEmptyLayoutSize() const; |
| 72 | 72 |
| 73 // Returns the bounds of the element in viewport space. The bounds | 73 // Returns the bounds of the element in Visual Viewport. The bounds |
| 74 // have been adjusted to include any transformations. This view is | 74 // have been adjusted to include any transformations, including page scale. |
| 75 // also called the Root View in Blink. | |
| 76 // This function will update the layout if required. | 75 // This function will update the layout if required. |
| 77 BLINK_EXPORT WebRect boundsInViewportSpace(); | 76 BLINK_EXPORT WebRect boundsInViewport(); |
| 78 | 77 |
| 79 // Returns the image contents of this element or a null WebImage | 78 // Returns the image contents of this element or a null WebImage |
| 80 // if there isn't any. | 79 // if there isn't any. |
| 81 BLINK_EXPORT WebImage imageContents(); | 80 BLINK_EXPORT WebImage imageContents(); |
| 82 | 81 |
| 83 #if BLINK_IMPLEMENTATION | 82 #if BLINK_IMPLEMENTATION |
| 84 WebElement(const PassRefPtrWillBeRawPtr<Element>&); | 83 WebElement(const PassRefPtrWillBeRawPtr<Element>&); |
| 85 WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&); | 84 WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&); |
| 86 operator PassRefPtrWillBeRawPtr<Element>() const; | 85 operator PassRefPtrWillBeRawPtr<Element>() const; |
| 87 #endif | 86 #endif |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 DECLARE_WEB_NODE_TYPE_CASTS(WebElement); | 89 DECLARE_WEB_NODE_TYPE_CASTS(WebElement); |
| 91 | 90 |
| 92 } // namespace blink | 91 } // namespace blink |
| 93 | 92 |
| 94 #endif | 93 #endif |
| OLD | NEW |