Fix build for future versions of Clang.
[WebKit-https.git] / Source / WebCore / page / MainFrame.h
index 7fc4c51..c221167 100644 (file)
 #ifndef MainFrame_h
 #define MainFrame_h
 
+#include "EventHandler.h"
 #include "Frame.h"
 #include <wtf/Vector.h>
 
 namespace WebCore {
 
-class DiagnosticLoggingClient;
 class PageConfiguration;
 class PageOverlayController;
+class PaymentCoordinator;
 class ScrollLatchingState;
 class ServicesOverlayController;
 class WheelEventDeltaFilter;
@@ -59,9 +60,12 @@ public:
     void pushNewLatchingState();
     void popLatchingState();
     void resetLatchingState();
+    void removeLatchingStateForTarget(Element&);
 #endif // PLATFORM(MAC)
 
-    WEBCORE_EXPORT DiagnosticLoggingClient& diagnosticLoggingClient() const;
+#if ENABLE(APPLE_PAY)
+    PaymentCoordinator& paymentCoordinator() const { return *m_paymentCoordinator; }
+#endif
 
 private:
     MainFrame(Page&, PageConfiguration&);
@@ -79,13 +83,11 @@ private:
 
     std::unique_ptr<WheelEventDeltaFilter> m_recentWheelEventDeltaFilter;
     std::unique_ptr<PageOverlayController> m_pageOverlayController;
-    DiagnosticLoggingClient* m_diagnosticLoggingClient;
-};
 
-inline bool Frame::isMainFrame() const
-{
-    return this == &m_mainFrame;
-}
+#if ENABLE(APPLE_PAY)
+    std::unique_ptr<PaymentCoordinator> m_paymentCoordinator;
+#endif
+};
 
 }