OLD | NEW |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) | 54 void DocumentFullscreen::webkitCancelFullScreen(Document& document) |
55 { | 55 { |
56 FullscreenElementStack::from(document).webkitCancelFullScreen(); | 56 FullscreenElementStack::from(document).fullyExitFullscreen(); |
57 } | 57 } |
58 | 58 |
59 bool DocumentFullscreen::webkitFullscreenEnabled(Document& document) | 59 bool DocumentFullscreen::webkitFullscreenEnabled(Document& document) |
60 { | 60 { |
61 return FullscreenElementStack::webkitFullscreenEnabled(document); | 61 return FullscreenElementStack::webkitFullscreenEnabled(document); |
62 } | 62 } |
63 | 63 |
64 Element* DocumentFullscreen::webkitFullscreenElement(Document& document) | 64 Element* DocumentFullscreen::webkitFullscreenElement(Document& document) |
65 { | 65 { |
66 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist
s(document)) | 66 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist
s(document)) |
67 return fullscreen->webkitFullscreenElement(); | 67 return fullscreen->webkitFullscreenElement(); |
68 return 0; | 68 return 0; |
69 } | 69 } |
70 | 70 |
71 void DocumentFullscreen::webkitExitFullscreen(Document& document) | 71 void DocumentFullscreen::webkitExitFullscreen(Document& document) |
72 { | 72 { |
73 FullscreenElementStack::from(document).webkitExitFullscreen(); | 73 FullscreenElementStack::from(document).exitFullscreen(); |
74 } | 74 } |
75 | 75 |
76 } // namespace WebCore | 76 } // namespace WebCore |
OLD | NEW |