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 | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class Element; | 41 class Element; |
42 class LocalFrame; | 42 class LocalFrame; |
43 class WebViewImpl; | 43 class WebViewImpl; |
44 | 44 |
45 class FullscreenController final : public GarbageCollected<FullscreenController>
{ | 45 class FullscreenController final : public GarbageCollected<FullscreenController>
{ |
46 public: | 46 public: |
47 static FullscreenController* create(WebViewImpl*); | 47 static FullscreenController* create(WebViewImpl*); |
48 | 48 |
49 void didEnterFullScreen(); | 49 void didEnterFullscreen(); |
50 void didExitFullScreen(); | 50 void didExitFullscreen(); |
51 | 51 |
52 void enterFullScreenForElement(Element*); | 52 void enterFullScreenForElement(Element*); |
53 void exitFullScreenForElement(Element*); | 53 void exitFullScreenForElement(Element*); |
54 | 54 |
55 bool isFullscreen() { return m_fullScreenFrame; } | 55 bool isFullscreen() { return m_fullScreenFrame; } |
56 | 56 |
57 void updateSize(); | 57 void updateSize(); |
58 | 58 |
59 DECLARE_TRACE(); | 59 DECLARE_TRACE(); |
60 | 60 |
(...skipping 15 matching lines...) Expand all Loading... |
76 | 76 |
77 // If set, the WebView is in fullscreen mode for an element in this frame. | 77 // If set, the WebView is in fullscreen mode for an element in this frame. |
78 Member<LocalFrame> m_fullScreenFrame; | 78 Member<LocalFrame> m_fullScreenFrame; |
79 | 79 |
80 bool m_isCancelingFullScreen; | 80 bool m_isCancelingFullScreen; |
81 }; | 81 }; |
82 | 82 |
83 } // namespace blink | 83 } // namespace blink |
84 | 84 |
85 #endif | 85 #endif |
OLD | NEW |