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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 390363002: Unprefix most methods on FullscreenElementStack (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/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1893 1893
1894 void Internals::setIsCursorVisible(Document* document, bool isVisible, Exception State& exceptionState) 1894 void Internals::setIsCursorVisible(Document* document, bool isVisible, Exception State& exceptionState)
1895 { 1895 {
1896 if (!document || !document->page()) { 1896 if (!document || !document->page()) {
1897 exceptionState.throwDOMException(InvalidAccessError, document ? "The doc ument's page cannot be retrieved." : "No context document can be obtained."); 1897 exceptionState.throwDOMException(InvalidAccessError, document ? "The doc ument's page cannot be retrieved." : "No context document can be obtained.");
1898 return; 1898 return;
1899 } 1899 }
1900 document->page()->setIsCursorVisible(isVisible); 1900 document->page()->setIsCursorVisible(isVisible);
1901 } 1901 }
1902 1902
1903 void Internals::webkitWillEnterFullScreenForElement(Document* document, Element* element)
1904 {
1905 if (!document)
1906 return;
1907 FullscreenElementStack::from(*document).webkitWillEnterFullScreenForElement( element);
1908 }
1909
1910 void Internals::webkitDidEnterFullScreenForElement(Document* document, Element* element)
1911 {
1912 if (!document)
1913 return;
1914 FullscreenElementStack::from(*document).webkitDidEnterFullScreenForElement(e lement);
1915 }
1916
1917 void Internals::webkitWillExitFullScreenForElement(Document* document, Element* element)
1918 {
1919 if (!document)
1920 return;
1921 FullscreenElementStack::from(*document).webkitWillExitFullScreenForElement(e lement);
1922 }
1923
1924 void Internals::webkitDidExitFullScreenForElement(Document* document, Element* e lement)
1925 {
1926 if (!document)
1927 return;
1928 FullscreenElementStack::from(*document).webkitDidExitFullScreenForElement(el ement);
1929 }
1930
1931 void Internals::mediaPlayerRequestFullscreen(HTMLMediaElement* mediaElement) 1903 void Internals::mediaPlayerRequestFullscreen(HTMLMediaElement* mediaElement)
1932 { 1904 {
1933 mediaElement->mediaPlayerRequestFullscreen(); 1905 mediaElement->mediaPlayerRequestFullscreen();
1934 } 1906 }
1935 1907
1936 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme) 1908 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme)
1937 { 1909 {
1938 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); 1910 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme);
1939 } 1911 }
1940 1912
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2357 } 2329 }
2358 networkStateNotifier().setWebConnectionTypeForTest(webtype); 2330 networkStateNotifier().setWebConnectionTypeForTest(webtype);
2359 } 2331 }
2360 2332
2361 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context) 2333 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context)
2362 { 2334 {
2363 return context->hitRegionsCount(); 2335 return context->hitRegionsCount();
2364 } 2336 }
2365 2337
2366 } // namespace WebCore 2338 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698