Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(682)

Side by Side Diff: third_party/WebKit/Source/web/FullscreenController.h

Issue 1997413003: Revert of Add support for entering/exiting HTML fullscreen from OOPIFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
61 void updateSize(); 59 void updateSize();
62 60
63 DECLARE_TRACE(); 61 DECLARE_TRACE();
64 62
65 protected: 63 protected:
66 explicit FullscreenController(WebViewImpl*); 64 explicit FullscreenController(WebViewImpl*);
67 65
68 private: 66 private:
69 void updatePageScaleConstraints(bool removeConstraints); 67 void updatePageScaleConstraints(bool removeConstraints);
70 68
71 WebViewImpl* m_webViewImpl; 69 WebViewImpl* m_webViewImpl;
72 70
73 bool m_haveEnteredFullscreen; 71 bool m_haveEnteredFullscreen;
74 float m_exitFullscreenPageScaleFactor; 72 float m_exitFullscreenPageScaleFactor;
75 IntSize m_exitFullscreenScrollOffset; 73 IntSize m_exitFullscreenScrollOffset;
76 FloatPoint m_exitFullscreenVisualViewportOffset; 74 FloatPoint m_exitFullscreenVisualViewportOffset;
77 75
78 // If set, the WebView is transitioning to fullscreen for this element. 76 // If set, the WebView is transitioning to fullscreen for this element.
79 Member<Element> m_provisionalFullScreenElement; 77 Member<Element> m_provisionalFullScreenElement;
80 78
81 // 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.
82 Member<LocalFrame> m_fullScreenFrame; 80 Member<LocalFrame> m_fullScreenFrame;
83 81
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
88 bool m_isCancelingFullScreen; 82 bool m_isCancelingFullScreen;
89 }; 83 };
90 84
91 } // namespace blink 85 } // namespace blink
92 86
93 #endif 87 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | third_party/WebKit/Source/web/FullscreenController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698