Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Side by Side Diff: third_party/WebKit/public/web/WebElement.h

Issue 1463723003: Return VisualViewport coords in boundsInViewportSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value ); 64 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value );
65 BLINK_EXPORT WebString textContent() const; 65 BLINK_EXPORT WebString textContent() const;
66 BLINK_EXPORT void requestFullScreen(); 66 BLINK_EXPORT void requestFullScreen();
67 BLINK_EXPORT WebString attributeLocalName(unsigned index) const; 67 BLINK_EXPORT WebString attributeLocalName(unsigned index) const;
68 BLINK_EXPORT WebString attributeValue(unsigned index) const; 68 BLINK_EXPORT WebString attributeValue(unsigned index) const;
69 BLINK_EXPORT unsigned attributeCount() const; 69 BLINK_EXPORT unsigned attributeCount() const;
70 70
71 // If this element takes up space in the layout of the page. 71 // If this element takes up space in the layout of the page.
72 BLINK_EXPORT bool hasNonEmptyLayoutSize() const; 72 BLINK_EXPORT bool hasNonEmptyLayoutSize() const;
73 73
74 // Returns the bounds of the element in viewport space. The bounds 74 // Returns the bounds of the element in Visual Viewport. The bounds
75 // have been adjusted to include any transformations. This view is 75 // have been adjusted to include any transformations, including page scale.
76 // also called the Root View in Blink.
77 // This function will update the layout if required. 76 // This function will update the layout if required.
78 BLINK_EXPORT WebRect boundsInViewportSpace(); 77 BLINK_EXPORT WebRect boundsInViewport();
79 78
80 // Returns the image contents of this element or a null WebImage 79 // Returns the image contents of this element or a null WebImage
81 // if there isn't any. 80 // if there isn't any.
82 BLINK_EXPORT WebImage imageContents(); 81 BLINK_EXPORT WebImage imageContents();
83 82
84 #if BLINK_IMPLEMENTATION 83 #if BLINK_IMPLEMENTATION
85 WebElement(const PassRefPtrWillBeRawPtr<Element>&); 84 WebElement(const PassRefPtrWillBeRawPtr<Element>&);
86 WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&); 85 WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&);
87 operator PassRefPtrWillBeRawPtr<Element>() const; 86 operator PassRefPtrWillBeRawPtr<Element>() const;
88 #endif 87 #endif
89 }; 88 };
90 89
91 DECLARE_WEB_NODE_TYPE_CASTS(WebElement); 90 DECLARE_WEB_NODE_TYPE_CASTS(WebElement);
92 91
93 } // namespace blink 92 } // namespace blink
94 93
95 #endif 94 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698