OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |