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

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

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Back out non-Oilpan experiment + tidy up by adding frame() ref accessors Created 6 years, 3 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 25 matching lines...) Expand all
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "wtf/PassOwnPtr.h" 37 #include "wtf/PassOwnPtr.h"
38 #include "wtf/RefPtr.h" 38 #include "wtf/RefPtr.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class Element; 42 class Element;
43 class LocalFrame; 43 class LocalFrame;
44 class WebViewImpl; 44 class WebViewImpl;
45 45
46 class FullscreenController { 46 class FullscreenController FINAL : public NoBaseWillBeGarbageCollected<Fullscree nController> {
47 public: 47 public:
48 static PassOwnPtr<FullscreenController> create(WebViewImpl*); 48 static PassOwnPtrWillBeRawPtr<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 trace(Visitor*);
59
58 protected: 60 protected:
59 explicit FullscreenController(WebViewImpl*); 61 explicit FullscreenController(WebViewImpl*);
60 62
61 private: 63 private:
62 WebViewImpl* m_webViewImpl; 64 WebViewImpl* m_webViewImpl;
63 65
64 float m_exitFullscreenPageScaleFactor; 66 float m_exitFullscreenPageScaleFactor;
65 IntSize m_exitFullscreenScrollOffset; 67 IntSize m_exitFullscreenScrollOffset;
66 FloatPoint m_exitFullscreenPinchViewportOffset; 68 FloatPoint m_exitFullscreenPinchViewportOffset;
67 69
68 // If set, the WebView is transitioning to fullscreen for this element. 70 // If set, the WebView is transitioning to fullscreen for this element.
69 RefPtrWillBePersistent<Element> m_provisionalFullScreenElement; 71 RefPtrWillBeMember<Element> m_provisionalFullScreenElement;
70 72
71 // If set, the WebView is in fullscreen mode for an element in this frame. 73 // If set, the WebView is in fullscreen mode for an element in this frame.
72 RefPtr<LocalFrame> m_fullScreenFrame; 74 RefPtrWillBeMember<LocalFrame> m_fullScreenFrame;
73 75
74 bool m_isCancelingFullScreen; 76 bool m_isCancelingFullScreen;
75 }; 77 };
76 78
77 } // namespace blink 79 } // namespace blink
78 80
79 #endif 81 #endif
80
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698