| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 static FullscreenController* create(WebViewImpl*); | 48 static FullscreenController* create(WebViewImpl*); |
| 49 | 49 |
| 50 void didEnterFullScreen(); | 50 void didEnterFullScreen(); |
| 51 void didExitFullScreen(); | 51 void didExitFullScreen(); |
| 52 | 52 |
| 53 void enterFullScreenForElement(Element*); | 53 void enterFullScreenForElement(Element*); |
| 54 void exitFullScreenForElement(Element*); | 54 void exitFullScreenForElement(Element*); |
| 55 | 55 |
| 56 bool isFullscreen() { return m_fullScreenFrame; } | 56 bool isFullscreen() { return m_fullScreenFrame; } |
| 57 | 57 |
| 58 void setFullscreenIsForCrossProcessAncestor() { m_fullscreenIsForCrossProces
sAncestor = true; } | |
| 59 | |
| 60 void updateSize(); | 58 void updateSize(); |
| 61 | 59 |
| 62 DECLARE_TRACE(); | 60 DECLARE_TRACE(); |
| 63 | 61 |
| 64 protected: | 62 protected: |
| 65 explicit FullscreenController(WebViewImpl*); | 63 explicit FullscreenController(WebViewImpl*); |
| 66 | 64 |
| 67 private: | 65 private: |
| 68 void updatePageScaleConstraints(bool removeConstraints); | 66 void updatePageScaleConstraints(bool removeConstraints); |
| 69 | 67 |
| 70 WebViewImpl* m_webViewImpl; | 68 WebViewImpl* m_webViewImpl; |
| 71 | 69 |
| 72 bool m_haveEnteredFullscreen; | 70 bool m_haveEnteredFullscreen; |
| 73 float m_exitFullscreenPageScaleFactor; | 71 float m_exitFullscreenPageScaleFactor; |
| 74 IntSize m_exitFullscreenScrollOffset; | 72 IntSize m_exitFullscreenScrollOffset; |
| 75 FloatPoint m_exitFullscreenVisualViewportOffset; | 73 FloatPoint m_exitFullscreenVisualViewportOffset; |
| 76 | 74 |
| 77 // If set, the WebView is transitioning to fullscreen for this element. | 75 // If set, the WebView is transitioning to fullscreen for this element. |
| 78 Member<Element> m_provisionalFullScreenElement; | 76 Member<Element> m_provisionalFullScreenElement; |
| 79 | 77 |
| 80 // 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. |
| 81 Member<LocalFrame> m_fullScreenFrame; | 79 Member<LocalFrame> m_fullScreenFrame; |
| 82 | 80 |
| 83 // If set, fullscreen is entered for an element that is a container for | |
| 84 // another fullscreen element in an out-of-process iframe. | |
| 85 bool m_fullscreenIsForCrossProcessAncestor; | |
| 86 | |
| 87 bool m_isCancelingFullScreen; | 81 bool m_isCancelingFullScreen; |
| 88 }; | 82 }; |
| 89 | 83 |
| 90 } // namespace blink | 84 } // namespace blink |
| 91 | 85 |
| 92 #endif | 86 #endif |
| OLD | NEW |