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

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

Issue 387233002: Introduce FullscreenElementStack::fullyExitFullscreen() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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') | 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 { 224 {
225 RefPtrWillBeRawPtr<Document> document = unwrap<Document>(); 225 RefPtrWillBeRawPtr<Document> document = unwrap<Document>();
226 Vector<String> selectors; 226 Vector<String> selectors;
227 selectors.append(webSelectors.data(), webSelectors.size()); 227 selectors.append(webSelectors.data(), webSelectors.size());
228 CSSSelectorWatch::from(*document).watchCSSSelectors(selectors); 228 CSSSelectorWatch::from(*document).watchCSSSelectors(selectors);
229 } 229 }
230 230
231 void WebDocument::cancelFullScreen() 231 void WebDocument::cancelFullScreen()
232 { 232 {
233 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(*unwrap<Document>())) 233 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(*unwrap<Document>()))
234 fullscreen->webkitCancelFullScreen(); 234 fullscreen->fullyExitFullscreen();
235 } 235 }
236 236
237 WebElement WebDocument::fullScreenElement() const 237 WebElement WebDocument::fullScreenElement() const
238 { 238 {
239 Element* fullScreenElement = 0; 239 Element* fullScreenElement = 0;
240 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(*const_cast<WebDocument*>(this)->unwrap<Document>())) 240 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(*const_cast<WebDocument*>(this)->unwrap<Document>()))
241 fullScreenElement = fullscreen->webkitCurrentFullScreenElement(); 241 fullScreenElement = fullscreen->webkitCurrentFullScreenElement();
242 return WebElement(fullScreenElement); 242 return WebElement(fullScreenElement);
243 } 243 }
244 244
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 m_private = elem; 316 m_private = elem;
317 return *this; 317 return *this;
318 } 318 }
319 319
320 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const 320 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const
321 { 321 {
322 return toDocument(m_private.get()); 322 return toDocument(m_private.get());
323 } 323 }
324 324
325 } // namespace blink 325 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698