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

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: rebase Created 5 years 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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698