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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void didUpdateLayout(); | 59 void didUpdateLayout(); |
60 | 60 |
61 DECLARE_TRACE(); | 61 DECLARE_TRACE(); |
62 | 62 |
63 protected: | 63 protected: |
64 explicit FullscreenController(WebViewImpl*); | 64 explicit FullscreenController(WebViewImpl*); |
65 | 65 |
66 private: | 66 private: |
67 void updatePageScaleConstraints(bool removeConstraints); | 67 void updatePageScaleConstraints(bool removeConstraints); |
68 | 68 |
| 69 // Notify the current media element or all its child media elements when |
| 70 // the |element| enters/exits full screen. |
| 71 void updateMediaInFullscreen(Element*, bool isFullscreen); |
| 72 |
69 WebViewImpl* m_webViewImpl; | 73 WebViewImpl* m_webViewImpl; |
70 | 74 |
71 bool m_haveEnteredFullscreen; | 75 bool m_haveEnteredFullscreen; |
72 float m_exitFullscreenPageScaleFactor; | 76 float m_exitFullscreenPageScaleFactor; |
73 IntSize m_exitFullscreenScrollOffset; | 77 IntSize m_exitFullscreenScrollOffset; |
74 FloatPoint m_exitFullscreenVisualViewportOffset; | 78 FloatPoint m_exitFullscreenVisualViewportOffset; |
75 bool m_needsScrollAndScaleRestore; | 79 bool m_needsScrollAndScaleRestore; |
76 | 80 |
77 // If set, the WebView is transitioning to fullscreen for this element. | 81 // If set, the WebView is transitioning to fullscreen for this element. |
78 Member<Element> m_provisionalFullScreenElement; | 82 Member<Element> m_provisionalFullScreenElement; |
79 | 83 |
80 // If set, the WebView is in fullscreen mode for an element in this frame. | 84 // If set, the WebView is in fullscreen mode for an element in this frame. |
81 Member<LocalFrame> m_fullScreenFrame; | 85 Member<LocalFrame> m_fullScreenFrame; |
82 | 86 |
83 bool m_isCancelingFullScreen; | 87 bool m_isCancelingFullScreen; |
84 }; | 88 }; |
85 | 89 |
86 } // namespace blink | 90 } // namespace blink |
87 | 91 |
88 #endif | 92 #endif |
OLD | NEW |