Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / web / FullscreenController.h
index 4eb36d1..56a4d8f 100644 (file)
@@ -43,13 +43,11 @@ class Element;
 class LocalFrame;
 class WebViewImpl;
 
-class FullscreenController {
+class FullscreenController FINAL : public NoBaseWillBeGarbageCollected<FullscreenController> {
 public:
-    static PassOwnPtr<FullscreenController> create(WebViewImpl*);
+    static PassOwnPtrWillBeRawPtr<FullscreenController> create(WebViewImpl*);
 
-    void willEnterFullScreen();
     void didEnterFullScreen();
-    void willExitFullScreen();
     void didExitFullScreen();
 
     void enterFullScreenForElement(Element*);
@@ -57,6 +55,8 @@ public:
 
     bool isFullscreen() { return m_fullScreenFrame; }
 
+    void trace(Visitor*);
+
 protected:
     explicit FullscreenController(WebViewImpl*);
 
@@ -68,10 +68,10 @@ private:
     FloatPoint m_exitFullscreenPinchViewportOffset;
 
     // If set, the WebView is transitioning to fullscreen for this element.
-    RefPtrWillBePersistent<Element> m_provisionalFullScreenElement;
+    RefPtrWillBeMember<Element> m_provisionalFullScreenElement;
 
     // If set, the WebView is in fullscreen mode for an element in this frame.
-    RefPtr<LocalFrame> m_fullScreenFrame;
+    RefPtrWillBeMember<LocalFrame> m_fullScreenFrame;
 
     bool m_isCancelingFullScreen;
 };
@@ -79,4 +79,3 @@ private:
 } // namespace blink
 
 #endif
-