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 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 { |
47 public: | 47 public: |
48 static PassOwnPtr<FullscreenController> create(WebViewImpl*); | 48 static PassOwnPtr<FullscreenController> create(WebViewImpl*); |
49 | 49 |
50 void willEnterFullScreen(); | |
51 void didEnterFullScreen(); | 50 void didEnterFullScreen(); |
52 void willExitFullScreen(); | |
53 void didExitFullScreen(); | 51 void didExitFullScreen(); |
54 | 52 |
55 void enterFullScreenForElement(Element*); | 53 void enterFullScreenForElement(Element*); |
56 void exitFullScreenForElement(Element*); | 54 void exitFullScreenForElement(Element*); |
57 | 55 |
58 bool isFullscreen() { return m_fullScreenFrame; } | 56 bool isFullscreen() { return m_fullScreenFrame; } |
59 | 57 |
60 protected: | 58 protected: |
61 explicit FullscreenController(WebViewImpl*); | 59 explicit FullscreenController(WebViewImpl*); |
62 | 60 |
(...skipping 10 matching lines...) Expand all Loading... |
73 // If set, the WebView is in fullscreen mode for an element in this frame. | 71 // If set, the WebView is in fullscreen mode for an element in this frame. |
74 RefPtr<LocalFrame> m_fullScreenFrame; | 72 RefPtr<LocalFrame> m_fullScreenFrame; |
75 | 73 |
76 bool m_isCancelingFullScreen; | 74 bool m_isCancelingFullScreen; |
77 }; | 75 }; |
78 | 76 |
79 } // namespace blink | 77 } // namespace blink |
80 | 78 |
81 #endif | 79 #endif |
82 | 80 |
OLD | NEW |