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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef FullscreenController_h | 31 #ifndef FullscreenController_h |
32 #define FullscreenController_h | 32 #define FullscreenController_h |
33 | 33 |
34 #include "platform/geometry/FloatPoint.h" | 34 #include "platform/geometry/FloatPoint.h" |
35 #include "platform/geometry/IntSize.h" | 35 #include "platform/geometry/IntSize.h" |
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 WebCore { | 40 namespace blink { |
41 class Element; | 41 class Element; |
42 class LocalFrame; | 42 class LocalFrame; |
43 } | 43 } |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 class WebViewImpl; | 46 class WebViewImpl; |
47 | 47 |
48 class FullscreenController { | 48 class FullscreenController { |
49 public: | 49 public: |
50 static PassOwnPtr<FullscreenController> create(WebViewImpl*); | 50 static PassOwnPtr<FullscreenController> create(WebViewImpl*); |
51 | 51 |
52 void willEnterFullScreen(); | 52 void willEnterFullScreen(); |
53 void didEnterFullScreen(); | 53 void didEnterFullScreen(); |
54 void willExitFullScreen(); | 54 void willExitFullScreen(); |
55 void didExitFullScreen(); | 55 void didExitFullScreen(); |
56 | 56 |
57 void enterFullScreenForElement(WebCore::Element*); | 57 void enterFullScreenForElement(blink::Element*); |
58 void exitFullScreenForElement(WebCore::Element*); | 58 void exitFullScreenForElement(blink::Element*); |
59 | 59 |
60 bool isFullscreen() { return m_fullScreenFrame; } | 60 bool isFullscreen() { return m_fullScreenFrame; } |
61 | 61 |
62 protected: | 62 protected: |
63 explicit FullscreenController(WebViewImpl*); | 63 explicit FullscreenController(WebViewImpl*); |
64 | 64 |
65 private: | 65 private: |
66 WebViewImpl* m_webViewImpl; | 66 WebViewImpl* m_webViewImpl; |
67 | 67 |
68 float m_exitFullscreenPageScaleFactor; | 68 float m_exitFullscreenPageScaleFactor; |
69 WebCore::IntSize m_exitFullscreenScrollOffset; | 69 blink::IntSize m_exitFullscreenScrollOffset; |
70 WebCore::FloatPoint m_exitFullscreenPinchViewportOffset; | 70 blink::FloatPoint m_exitFullscreenPinchViewportOffset; |
71 | 71 |
72 // If set, the WebView is transitioning to fullscreen for this element. | 72 // If set, the WebView is transitioning to fullscreen for this element. |
73 RefPtrWillBePersistent<WebCore::Element> m_provisionalFullScreenElement; | 73 RefPtrWillBePersistent<blink::Element> m_provisionalFullScreenElement; |
74 | 74 |
75 // If set, the WebView is in fullscreen mode for an element in this frame. | 75 // If set, the WebView is in fullscreen mode for an element in this frame. |
76 RefPtr<WebCore::LocalFrame> m_fullScreenFrame; | 76 RefPtr<blink::LocalFrame> m_fullScreenFrame; |
77 | 77 |
78 bool m_isCancelingFullScreen; | 78 bool m_isCancelingFullScreen; |
79 }; | 79 }; |
80 | 80 |
81 } | 81 } |
82 | 82 |
83 #endif | 83 #endif |
84 | 84 |
OLD | NEW |