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