| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool fullscreenEnabled(blink::Element*); |
| 57 void enterFullScreenForElement(blink::Element*); | 58 void enterFullScreenForElement(blink::Element*); |
| 58 void exitFullScreenForElement(blink::Element*); | 59 void exitFullScreenForElement(blink::Element*); |
| 59 | 60 |
| 60 bool isFullscreen() { return m_fullScreenFrame; } | 61 bool isFullscreen() { return m_fullScreenFrame; } |
| 61 | 62 |
| 62 protected: | 63 protected: |
| 63 explicit FullscreenController(WebViewImpl*); | 64 explicit FullscreenController(WebViewImpl*); |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 WebViewImpl* m_webViewImpl; | 67 WebViewImpl* m_webViewImpl; |
| 67 | 68 |
| 68 float m_exitFullscreenPageScaleFactor; | 69 float m_exitFullscreenPageScaleFactor; |
| 69 blink::IntSize m_exitFullscreenScrollOffset; | 70 blink::IntSize m_exitFullscreenScrollOffset; |
| 70 blink::FloatPoint m_exitFullscreenPinchViewportOffset; | 71 blink::FloatPoint m_exitFullscreenPinchViewportOffset; |
| 71 | 72 |
| 72 // If set, the WebView is transitioning to fullscreen for this element. | 73 // If set, the WebView is transitioning to fullscreen for this element. |
| 73 RefPtrWillBePersistent<blink::Element> m_provisionalFullScreenElement; | 74 RefPtrWillBePersistent<blink::Element> m_provisionalFullScreenElement; |
| 74 | 75 |
| 75 // If set, the WebView is in fullscreen mode for an element in this frame. | 76 // If set, the WebView is in fullscreen mode for an element in this frame. |
| 76 RefPtr<blink::LocalFrame> m_fullScreenFrame; | 77 RefPtr<blink::LocalFrame> m_fullScreenFrame; |
| 77 | 78 |
| 78 bool m_isCancelingFullScreen; | 79 bool m_isCancelingFullScreen; |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } | 82 } |
| 82 | 83 |
| 83 #endif | 84 #endif |
| 84 | 85 |
| OLD | NEW |