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

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

Issue 681113006: Remove keyboard event filtering in fullscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: oops Created 6 years, 1 month 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 29 matching lines...) Expand all
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::webkitFullScreenKeyboardInputAllowed(Document& document )
51 {
52 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document))
53 return fullscreen->webkitFullScreenKeyboardInputAllowed();
54 return false;
55 }
56
57 Element* DocumentFullscreen::webkitCurrentFullScreenElement(Document& document) 50 Element* DocumentFullscreen::webkitCurrentFullScreenElement(Document& document)
58 { 51 {
59 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document)) 52 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document))
60 return fullscreen->webkitCurrentFullScreenElement(); 53 return fullscreen->webkitCurrentFullScreenElement();
61 return 0; 54 return 0;
62 } 55 }
63 56
64 } // namespace blink 57 } // 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