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 27 matching lines...) Expand all Loading... |
38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class Element; | 43 class Element; |
44 class LocalFrame; | 44 class LocalFrame; |
45 class WebViewImpl; | 45 class WebViewImpl; |
46 | 46 |
47 class FullscreenController final : public NoBaseWillBeGarbageCollected<Fullscree
nController> { | 47 class FullscreenController final : public NoBaseWillBeGarbageCollected<Fullscree
nController> { |
| 48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(FullscreenController); |
48 public: | 49 public: |
49 static PassOwnPtrWillBeRawPtr<FullscreenController> create(WebViewImpl*); | 50 static PassOwnPtrWillBeRawPtr<FullscreenController> create(WebViewImpl*); |
50 | 51 |
51 void didEnterFullScreen(); | 52 void didEnterFullScreen(); |
52 void didExitFullScreen(); | 53 void didExitFullScreen(); |
53 | 54 |
54 void enterFullScreenForElement(Element*); | 55 void enterFullScreenForElement(Element*); |
55 void exitFullScreenForElement(Element*); | 56 void exitFullScreenForElement(Element*); |
56 | 57 |
57 bool isFullscreen() { return m_fullScreenFrame; } | 58 bool isFullscreen() { return m_fullScreenFrame; } |
(...skipping 19 matching lines...) Expand all Loading... |
77 | 78 |
78 // If set, the WebView is in fullscreen mode for an element in this frame. | 79 // If set, the WebView is in fullscreen mode for an element in this frame. |
79 RefPtrWillBeMember<LocalFrame> m_fullScreenFrame; | 80 RefPtrWillBeMember<LocalFrame> m_fullScreenFrame; |
80 | 81 |
81 bool m_isCancelingFullScreen; | 82 bool m_isCancelingFullScreen; |
82 }; | 83 }; |
83 | 84 |
84 } // namespace blink | 85 } // namespace blink |
85 | 86 |
86 #endif | 87 #endif |
OLD | NEW |