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

Side by Side Diff: Source/web/WebElement.cpp

Issue 476763004: Rename FullscreenElementStack to just Fullscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebDocument.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | 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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "public/web/WebElement.h" 32 #include "public/web/WebElement.h"
33 33
34 #include "bindings/core/v8/ExceptionState.h" 34 #include "bindings/core/v8/ExceptionState.h"
35 #include "core/dom/Element.h" 35 #include "core/dom/Element.h"
36 #include "core/dom/FullscreenElementStack.h" 36 #include "core/dom/Fullscreen.h"
37 #include "core/dom/NamedNodeMap.h" 37 #include "core/dom/NamedNodeMap.h"
38 #include "core/dom/custom/CustomElementCallbackDispatcher.h" 38 #include "core/dom/custom/CustomElementCallbackDispatcher.h"
39 #include "core/dom/shadow/ShadowRoot.h" 39 #include "core/dom/shadow/ShadowRoot.h"
40 #include "core/rendering/RenderBoxModelObject.h" 40 #include "core/rendering/RenderBoxModelObject.h"
41 #include "core/rendering/RenderObject.h" 41 #include "core/rendering/RenderObject.h"
42 #include "public/platform/WebRect.h" 42 #include "public/platform/WebRect.h"
43 #include "public/web/WebDocument.h" 43 #include "public/web/WebDocument.h"
44 #include "wtf/PassRefPtr.h" 44 #include "wtf/PassRefPtr.h"
45 45
46 46
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 137 }
138 138
139 WebString WebElement::computeInheritedLanguage() const 139 WebString WebElement::computeInheritedLanguage() const
140 { 140 {
141 return WebString(constUnwrap<Element>()->computeInheritedLanguage()); 141 return WebString(constUnwrap<Element>()->computeInheritedLanguage());
142 } 142 }
143 143
144 void WebElement::requestFullScreen() 144 void WebElement::requestFullScreen()
145 { 145 {
146 Element* element = unwrap<Element>(); 146 Element* element = unwrap<Element>();
147 FullscreenElementStack::from(element->document()).requestFullscreen(*element , FullscreenElementStack::PrefixedMozillaAllowKeyboardInputRequest); 147 Fullscreen::from(element->document()).requestFullscreen(*element, Fullscreen ::PrefixedMozillaAllowKeyboardInputRequest);
148 } 148 }
149 149
150 WebRect WebElement::boundsInViewportSpace() 150 WebRect WebElement::boundsInViewportSpace()
151 { 151 {
152 return unwrap<Element>()->boundsInRootViewSpace(); 152 return unwrap<Element>()->boundsInRootViewSpace();
153 } 153 }
154 154
155 WebImage WebElement::imageContents() 155 WebImage WebElement::imageContents()
156 { 156 {
157 if (isNull()) 157 if (isNull())
(...skipping 20 matching lines...) Expand all
178 m_private = elem; 178 m_private = elem;
179 return *this; 179 return *this;
180 } 180 }
181 181
182 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const 182 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const
183 { 183 {
184 return toElement(m_private.get()); 184 return toElement(m_private.get());
185 } 185 }
186 186
187 } // namespace blink 187 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebDocument.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698