Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: Source/web/FullscreenController.h

Issue 308513002: Fix fullscreen media control position issue when switching orientation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unnecessary scroll reset Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/web/FullscreenController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(WebCore::Element*);
58 void exitFullScreenForElement(WebCore::Element*); 58 void exitFullScreenForElement(WebCore::Element*);
59 59
60 bool isFullscreen() { return m_fullScreenFrame; }
61
60 protected: 62 protected:
61 explicit FullscreenController(WebViewImpl*); 63 explicit FullscreenController(WebViewImpl*);
62 64
63 private: 65 private:
64 WebViewImpl* m_webViewImpl; 66 WebViewImpl* m_webViewImpl;
65 67
66 float m_exitFullscreenPageScaleFactor; 68 float m_exitFullscreenPageScaleFactor;
67 WebCore::IntSize m_exitFullscreenScrollOffset; 69 WebCore::IntSize m_exitFullscreenScrollOffset;
68 WebCore::FloatPoint m_exitFullscreenPinchViewportOffset; 70 WebCore::FloatPoint m_exitFullscreenPinchViewportOffset;
69 71
70 // If set, the WebView is transitioning to fullscreen for this element. 72 // If set, the WebView is transitioning to fullscreen for this element.
71 RefPtrWillBePersistent<WebCore::Element> m_provisionalFullScreenElement; 73 RefPtrWillBePersistent<WebCore::Element> m_provisionalFullScreenElement;
72 74
73 // 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.
74 RefPtr<WebCore::LocalFrame> m_fullScreenFrame; 76 RefPtr<WebCore::LocalFrame> m_fullScreenFrame;
75 77
76 bool m_isCancelingFullScreen; 78 bool m_isCancelingFullScreen;
77 }; 79 };
78 80
79 } 81 }
80 82
81 #endif 83 #endif
82 84
OLDNEW
« no previous file with comments | « no previous file | Source/web/FullscreenController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698