Implement more functions for the Qt build
[WebKit-https.git] / WebKitQt / WebCoreSupport / ChromeClientQt.cpp
index c0951e9888300697d1302f1fb1cfe651d5fe4047..c9e5ee023bc97ef67ad36006022e70b6aa06818e 100644 (file)
@@ -209,7 +209,9 @@ void ChromeClientQt::setResizable(bool)
 void ChromeClientQt::addMessageToConsole(const String& message, unsigned int lineNumber,
                                          const String& sourceID)
 {
-    notImplemented();
+    QString x = message;
+    QString y = sourceID;
+    m_webPage->consoleMessage(x, lineNumber, y);
 }
 
 void ChromeClientQt::chromeDestroyed()
@@ -232,9 +234,10 @@ void ChromeClientQt::closeWindowSoon()
     notImplemented();
 }
 
-void ChromeClientQt::runJavaScriptAlert(Frame*, const String&)
+void ChromeClientQt::runJavaScriptAlert(Frame*, const String& msg)
 {
-    notImplemented();
+    QString x = msg;
+    m_webPage->runJavaScriptAlert(0, x);
 }
 
 bool ChromeClientQt::runJavaScriptConfirm(Frame*, const String&)