Преглед изворни кода

Ladybird: Stub out history navigation WebView::ViewImplementation APIs

These were added for WebDriver, which doesn't have a Ladybird
implementation yet.
Timothy Flynn пре 2 година
родитељ
комит
e592c7691e
2 измењених фајлова са 15 додато и 0 уклоњено
  1. 12 0
      Ladybird/WebContentView.cpp
  2. 3 0
      Ladybird/WebContentView.h

+ 12 - 0
Ladybird/WebContentView.cpp

@@ -798,6 +798,18 @@ void WebContentView::notify_server_did_finish_loading(Badge<WebContentClient>, A
     (void)url;
 }
 
+void WebContentView::notify_server_did_request_navigate_back(Badge<WebContentClient>)
+{
+}
+
+void WebContentView::notify_server_did_request_navigate_forward(Badge<WebContentClient>)
+{
+}
+
+void WebContentView::notify_server_did_request_refresh(Badge<WebContentClient>)
+{
+}
+
 void WebContentView::notify_server_did_request_context_menu(Badge<WebContentClient>, Gfx::IntPoint const& content_position)
 {
     // FIXME

+ 3 - 0
Ladybird/WebContentView.h

@@ -122,6 +122,9 @@ public:
     virtual void notify_server_did_middle_click_link(Badge<WebContentClient>, const AK::URL&, String const& target, unsigned modifiers) override;
     virtual void notify_server_did_start_loading(Badge<WebContentClient>, const AK::URL&) override;
     virtual void notify_server_did_finish_loading(Badge<WebContentClient>, const AK::URL&) override;
+    virtual void notify_server_did_request_navigate_back(Badge<WebContentClient>) override;
+    virtual void notify_server_did_request_navigate_forward(Badge<WebContentClient>) override;
+    virtual void notify_server_did_request_refresh(Badge<WebContentClient>) override;
     virtual void notify_server_did_request_context_menu(Badge<WebContentClient>, Gfx::IntPoint const&) override;
     virtual void notify_server_did_request_link_context_menu(Badge<WebContentClient>, Gfx::IntPoint const&, const AK::URL&, String const& target, unsigned modifiers) override;
     virtual void notify_server_did_request_image_context_menu(Badge<WebContentClient>, Gfx::IntPoint const&, const AK::URL&, String const& target, unsigned modifiers, Gfx::ShareableBitmap const&) override;