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 29 matching lines...) Expand all Loading... |
40 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document)) | 40 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document)) |
41 return fullscreen->fullscreenElement(); | 41 return fullscreen->fullscreenElement(); |
42 return 0; | 42 return 0; |
43 } | 43 } |
44 | 44 |
45 void DocumentFullscreen::exitFullscreen(Document& document) | 45 void DocumentFullscreen::exitFullscreen(Document& document) |
46 { | 46 { |
47 Fullscreen::from(document).exitFullscreen(); | 47 Fullscreen::from(document).exitFullscreen(); |
48 } | 48 } |
49 | 49 |
50 bool DocumentFullscreen::webkitIsFullScreen(Document& document) | |
51 { | |
52 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document)) | |
53 return fullscreen->webkitIsFullScreen(); | |
54 return false; | |
55 } | |
56 | |
57 bool DocumentFullscreen::webkitFullScreenKeyboardInputAllowed(Document& document
) | 50 bool DocumentFullscreen::webkitFullScreenKeyboardInputAllowed(Document& document
) |
58 { | 51 { |
59 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document)) | 52 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document)) |
60 return fullscreen->webkitFullScreenKeyboardInputAllowed(); | 53 return fullscreen->webkitFullScreenKeyboardInputAllowed(); |
61 return false; | 54 return false; |
62 } | 55 } |
63 | 56 |
64 Element* DocumentFullscreen::webkitCurrentFullScreenElement(Document& document) | 57 Element* DocumentFullscreen::webkitCurrentFullScreenElement(Document& document) |
65 { | 58 { |
66 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document)) | 59 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document)) |
67 return fullscreen->webkitCurrentFullScreenElement(); | 60 return fullscreen->webkitCurrentFullScreenElement(); |
68 return 0; | 61 return 0; |
69 } | 62 } |
70 | 63 |
71 } // namespace blink | 64 } // namespace blink |
OLD | NEW |