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); | |
49 public: | 48 public: |
50 static PassOwnPtrWillBeRawPtr<FullscreenController> create(WebViewImpl*); | 49 static PassOwnPtrWillBeRawPtr<FullscreenController> create(WebViewImpl*); |
51 | 50 |
52 void didEnterFullScreen(); | 51 void didEnterFullScreen(); |
53 void didExitFullScreen(); | 52 void didExitFullScreen(); |
54 | 53 |
55 void enterFullScreenForElement(Element*); | 54 void enterFullScreenForElement(Element*); |
56 void exitFullScreenForElement(Element*); | 55 void exitFullScreenForElement(Element*); |
57 | 56 |
58 bool isFullscreen() { return m_fullScreenFrame; } | 57 bool isFullscreen() { return m_fullScreenFrame; } |
(...skipping 19 matching lines...) Expand all Loading... |
78 | 77 |
79 // If set, the WebView is in fullscreen mode for an element in this frame. | 78 // If set, the WebView is in fullscreen mode for an element in this frame. |
80 RefPtrWillBeMember<LocalFrame> m_fullScreenFrame; | 79 RefPtrWillBeMember<LocalFrame> m_fullScreenFrame; |
81 | 80 |
82 bool m_isCancelingFullScreen; | 81 bool m_isCancelingFullScreen; |
83 }; | 82 }; |
84 | 83 |
85 } // namespace blink | 84 } // namespace blink |
86 | 85 |
87 #endif | 86 #endif |
OLD | NEW |