| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 class Element; | 41 class Element; |
| 42 class LocalFrame; | 42 class LocalFrame; |
| 43 class WebViewImpl; | 43 class WebViewImpl; |
| 44 | 44 |
| 45 class FullscreenController final | 45 class FullscreenController final |
| 46 : public GarbageCollected<FullscreenController> { | 46 : public GarbageCollected<FullscreenController> { |
| 47 public: | 47 public: |
| 48 static FullscreenController* create(WebViewImpl*); | 48 static FullscreenController* create(WebViewImpl*); |
| 49 | 49 |
| 50 // Called by Fullscreen (via ChromeClient) to request entering or exiting |
| 51 // fullscreen. |
| 52 void enterFullscreenForElement(Element*); |
| 53 void exitFullscreen(LocalFrame*); |
| 54 |
| 55 // Called by content::RenderWidget (via WebWidget) to notify that we've |
| 56 // entered or exited fullscreen. This can be because we requested it, or it |
| 57 // can be initiated by the browser directly. |
| 50 void didEnterFullscreen(); | 58 void didEnterFullscreen(); |
| 51 void didExitFullscreen(); | 59 void didExitFullscreen(); |
| 52 | 60 |
| 53 void enterFullscreenForElement(Element*); | 61 // Called by Fullscreen (via ChromeClient) to notify that the fullscreen |
| 54 void exitFullscreen(LocalFrame*); | 62 // element has changed. |
| 63 void fullscreenElementChanged(Element*, Element*); |
| 55 | 64 |
| 56 bool isFullscreen() { return m_fullscreenFrame; } | 65 bool isFullscreen() { return m_fullscreenFrame; } |
| 57 | 66 |
| 58 void updateSize(); | 67 void updateSize(); |
| 59 | 68 |
| 60 void didUpdateLayout(); | 69 void didUpdateLayout(); |
| 61 | 70 |
| 62 DECLARE_TRACE(); | 71 DECLARE_TRACE(); |
| 63 | 72 |
| 64 protected: | 73 protected: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 80 | 89 |
| 81 // If set, the WebView is in fullscreen mode for an element in this frame. | 90 // If set, the WebView is in fullscreen mode for an element in this frame. |
| 82 Member<LocalFrame> m_fullscreenFrame; | 91 Member<LocalFrame> m_fullscreenFrame; |
| 83 | 92 |
| 84 bool m_isCancelingFullscreen; | 93 bool m_isCancelingFullscreen; |
| 85 }; | 94 }; |
| 86 | 95 |
| 87 } // namespace blink | 96 } // namespace blink |
| 88 | 97 |
| 89 #endif | 98 #endif |
| OLD | NEW |