浏览代码

LibWeb: Move WebContentView from Demos/WebView into LibWeb

Andreas Kling 5 年之前
父节点
当前提交
7a7e39c7af

+ 1 - 8
Demos/WebView/CMakeLists.txt

@@ -1,13 +1,6 @@
 set(SOURCES
     main.cpp
-    WebContentView.cpp
-    WebContentClient.cpp
-)
-
-set(GENERATED_SOURCES
-    ../../Services/WebContent/WebContentClientEndpoint.h
-    ../../Services/WebContent/WebContentServerEndpoint.h
 )
 
 serenity_bin(WebView)
-target_link_libraries(WebView LibGUI)
+target_link_libraries(WebView LibWeb LibGUI)

+ 1 - 1
Demos/WebView/main.cpp

@@ -24,13 +24,13 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "WebContentView.h"
 #include <AK/URL.h>
 #include <LibGUI/Application.h>
 #include <LibGUI/BoxLayout.h>
 #include <LibGUI/StatusBar.h>
 #include <LibGUI/Widget.h>
 #include <LibGUI/Window.h>
+#include <LibWeb/WebContentView.h>
 
 int main(int argc, char** argv)
 {

+ 4 - 0
Libraries/LibWeb/CMakeLists.txt

@@ -109,11 +109,15 @@ set(SOURCES
     CSS/PropertyID.h
     CSS/PropertyID.cpp
     CSS/DefaultStyleSheetSource.cpp
+    WebContentView.cpp
+    WebContentClient.cpp
 )
 
 set(GENERATED_SOURCES
     ../../Services/ProtocolServer/ProtocolClientEndpoint.h
     ../../Services/ProtocolServer/ProtocolServerEndpoint.h
+    ../../Services/WebContent/WebContentClientEndpoint.h
+    ../../Services/WebContent/WebContentServerEndpoint.h
 )
 
 set_property(GLOBAL PROPERTY wrapper_sources)

+ 0 - 0
Demos/WebView/WebContentClient.cpp → Libraries/LibWeb/WebContentClient.cpp


+ 0 - 0
Demos/WebView/WebContentClient.h → Libraries/LibWeb/WebContentClient.h


+ 0 - 0
Demos/WebView/WebContentView.cpp → Libraries/LibWeb/WebContentView.cpp


+ 0 - 0
Demos/WebView/WebContentView.h → Libraries/LibWeb/WebContentView.h