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

Side by Side Diff: Source/web/WebDocument.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/FullscreenController.cpp ('k') | Source/web/WebElement.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 23 matching lines...) Expand all
34 #include "bindings/core/v8/Dictionary.h" 34 #include "bindings/core/v8/Dictionary.h"
35 #include "bindings/core/v8/ExceptionState.h" 35 #include "bindings/core/v8/ExceptionState.h"
36 #include "bindings/core/v8/ScriptState.h" 36 #include "bindings/core/v8/ScriptState.h"
37 #include "bindings/core/v8/ScriptValue.h" 37 #include "bindings/core/v8/ScriptValue.h"
38 #include "core/accessibility/AXObjectCache.h" 38 #include "core/accessibility/AXObjectCache.h"
39 #include "core/css/StyleSheetContents.h" 39 #include "core/css/StyleSheetContents.h"
40 #include "core/dom/CSSSelectorWatch.h" 40 #include "core/dom/CSSSelectorWatch.h"
41 #include "core/dom/Document.h" 41 #include "core/dom/Document.h"
42 #include "core/dom/DocumentType.h" 42 #include "core/dom/DocumentType.h"
43 #include "core/dom/Element.h" 43 #include "core/dom/Element.h"
44 #include "core/dom/FullscreenElementStack.h" 44 #include "core/dom/Fullscreen.h"
45 #include "core/dom/StyleEngine.h" 45 #include "core/dom/StyleEngine.h"
46 #include "core/html/HTMLAllCollection.h" 46 #include "core/html/HTMLAllCollection.h"
47 #include "core/html/HTMLBodyElement.h" 47 #include "core/html/HTMLBodyElement.h"
48 #include "core/html/HTMLCollection.h" 48 #include "core/html/HTMLCollection.h"
49 #include "core/html/HTMLElement.h" 49 #include "core/html/HTMLElement.h"
50 #include "core/html/HTMLFormElement.h" 50 #include "core/html/HTMLFormElement.h"
51 #include "core/html/HTMLHeadElement.h" 51 #include "core/html/HTMLHeadElement.h"
52 #include "core/loader/DocumentLoader.h" 52 #include "core/loader/DocumentLoader.h"
53 #include "core/rendering/RenderObject.h" 53 #include "core/rendering/RenderObject.h"
54 #include "core/rendering/RenderView.h" 54 #include "core/rendering/RenderView.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors) 222 void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors)
223 { 223 {
224 RefPtrWillBeRawPtr<Document> document = unwrap<Document>(); 224 RefPtrWillBeRawPtr<Document> document = unwrap<Document>();
225 Vector<String> selectors; 225 Vector<String> selectors;
226 selectors.append(webSelectors.data(), webSelectors.size()); 226 selectors.append(webSelectors.data(), webSelectors.size());
227 CSSSelectorWatch::from(*document).watchCSSSelectors(selectors); 227 CSSSelectorWatch::from(*document).watchCSSSelectors(selectors);
228 } 228 }
229 229
230 void WebDocument::cancelFullScreen() 230 void WebDocument::cancelFullScreen()
231 { 231 {
232 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(*unwrap<Document>())) 232 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(*unwrap<Document>()))
233 fullscreen->fullyExitFullscreen(); 233 fullscreen->fullyExitFullscreen();
234 } 234 }
235 235
236 WebElement WebDocument::fullScreenElement() const 236 WebElement WebDocument::fullScreenElement() const
237 { 237 {
238 Element* fullScreenElement = 0; 238 Element* fullScreenElement = 0;
239 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(*const_cast<WebDocument*>(this)->unwrap<Document>())) 239 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(*const_cast<WebDocumen t*>(this)->unwrap<Document>()))
240 fullScreenElement = fullscreen->webkitCurrentFullScreenElement(); 240 fullScreenElement = fullscreen->webkitCurrentFullScreenElement();
241 return WebElement(fullScreenElement); 241 return WebElement(fullScreenElement);
242 } 242 }
243 243
244 WebDOMEvent WebDocument::createEvent(const WebString& eventType) 244 WebDOMEvent WebDocument::createEvent(const WebString& eventType)
245 { 245 {
246 TrackExceptionState exceptionState; 246 TrackExceptionState exceptionState;
247 WebDOMEvent event(unwrap<Document>()->createEvent(eventType, exceptionState) ); 247 WebDOMEvent event(unwrap<Document>()->createEvent(eventType, exceptionState) );
248 if (exceptionState.hadException()) 248 if (exceptionState.hadException())
249 return WebDOMEvent(); 249 return WebDOMEvent();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 m_private = elem; 328 m_private = elem;
329 return *this; 329 return *this;
330 } 330 }
331 331
332 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const 332 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const
333 { 333 {
334 return toDocument(m_private.get()); 334 return toDocument(m_private.get());
335 } 335 }
336 336
337 } // namespace blink 337 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | Source/web/WebElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698