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

Unified Diff: third_party/WebKit/Source/web/FullscreenController.h

Issue 2495423004: Convert FullscreenController to use WebCallbacks (Closed)
Patch Set: just in case Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/FullscreenController.h
diff --git a/third_party/WebKit/Source/web/FullscreenController.h b/third_party/WebKit/Source/web/FullscreenController.h
index 4ffbd6d406d4289e23579dd682ef6928a26af2d0..e893dab27357ae2394292e2270c7407b6cd90ed7 100644
--- a/third_party/WebKit/Source/web/FullscreenController.h
+++ b/third_party/WebKit/Source/web/FullscreenController.h
@@ -33,11 +33,13 @@
#include "platform/geometry/FloatPoint.h"
#include "platform/geometry/IntSize.h"
+#include "wtf/Vector.h"
#include <memory>
namespace blink {
class Element;
+class FullscreenCallbacks;
class LocalFrame;
class WebViewImpl;
@@ -47,7 +49,7 @@ class FullscreenController {
// Called by Fullscreen (via ChromeClient) to request entering or exiting
// fullscreen.
- void enterFullscreen(LocalFrame&);
+ void enterFullscreen(LocalFrame&, std::unique_ptr<FullscreenCallbacks>);
void exitFullscreen(LocalFrame&);
// Called by content::RenderWidget (via WebWidget) to notify that we've
@@ -94,6 +96,9 @@ class FullscreenController {
float m_initialPageScaleFactor = 0.0f;
IntSize m_initialScrollOffset;
FloatPoint m_initialVisualViewportOffset;
+
+ using CallbacksList = Vector<std::unique_ptr<FullscreenCallbacks>>;
+ CallbacksList m_callbacksList;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/FullscreenController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698