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

Side by Side Diff: Source/core/dom/DocumentFullscreen.cpp

Issue 434903002: Make webkitCancelFullScreen() an alias of webkitExitFullscreen() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: polish test 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/core/dom/DocumentFullscreen.h ('k') | Source/core/dom/DocumentFullscreen.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) 2013, Google Inc. All rights reserved. 2 * Copyright (C) 2013, 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 met: 5 * modification, are permitted provided that the following conditions are met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 return false; 44 return false;
45 } 45 }
46 46
47 Element* DocumentFullscreen::webkitCurrentFullScreenElement(Document& document) 47 Element* DocumentFullscreen::webkitCurrentFullScreenElement(Document& document)
48 { 48 {
49 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(document)) 49 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(document))
50 return fullscreen->webkitCurrentFullScreenElement(); 50 return fullscreen->webkitCurrentFullScreenElement();
51 return 0; 51 return 0;
52 } 52 }
53 53
54 void DocumentFullscreen::webkitCancelFullScreen(Document& document)
55 {
56 FullscreenElementStack::from(document).fullyExitFullscreen();
57 }
58
59 bool DocumentFullscreen::webkitFullscreenEnabled(Document& document) 54 bool DocumentFullscreen::webkitFullscreenEnabled(Document& document)
60 { 55 {
61 return FullscreenElementStack::fullscreenEnabled(document); 56 return FullscreenElementStack::fullscreenEnabled(document);
62 } 57 }
63 58
64 Element* DocumentFullscreen::webkitFullscreenElement(Document& document) 59 Element* DocumentFullscreen::webkitFullscreenElement(Document& document)
65 { 60 {
66 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(document)) 61 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(document))
67 return fullscreen->fullscreenElement(); 62 return fullscreen->fullscreenElement();
68 return 0; 63 return 0;
69 } 64 }
70 65
71 void DocumentFullscreen::webkitExitFullscreen(Document& document) 66 void DocumentFullscreen::webkitExitFullscreen(Document& document)
72 { 67 {
73 FullscreenElementStack::from(document).exitFullscreen(); 68 FullscreenElementStack::from(document).exitFullscreen();
74 } 69 }
75 70
76 } // namespace blink 71 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentFullscreen.h ('k') | Source/core/dom/DocumentFullscreen.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698