~ubuntu-branches/ubuntu/karmic/webkit/karmic-proposed

« back to all changes in this revision

Viewing changes to WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-05-15 18:30:58 UTC
  • mto: (4.4.1 sid) (1.2.2 upstream) (16.1.1 lucid)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20090515183058-35m5or0ufm5tutud
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "config.h"
24
24
#include "ChromeClientGtk.h"
25
25
 
 
26
#include "Console.h"
26
27
#include "FileSystem.h"
27
28
#include "FileChooser.h"
28
29
#include "FloatRect.h"
237
238
    return runJavaScriptConfirm(frame, message);
238
239
}
239
240
 
240
 
void ChromeClient::addMessageToConsole(const WebCore::String& message, unsigned int lineNumber, const WebCore::String& sourceId)
 
241
void ChromeClient::addMessageToConsole(WebCore::MessageSource source, WebCore::MessageLevel level, const WebCore::String& message, unsigned int lineNumber, const WebCore::String& sourceId)
241
242
{
242
243
    gboolean retval;
243
244
    g_signal_emit_by_name(m_webView, "console-message", message.utf8().data(), lineNumber, sourceId.utf8().data(), &retval);
436
437
    webkit_web_frame_print(webFrame);
437
438
}
438
439
 
 
440
#if ENABLE(DATABASE)
439
441
void ChromeClient::exceededDatabaseQuota(Frame* frame, const String&)
440
442
{
441
 
#if ENABLE(DATABASE)
442
443
    // Set to 5M for testing
443
444
    // FIXME: Make this configurable
444
445
    notImplemented();
445
446
    const unsigned long long defaultQuota = 5 * 1024 * 1024;
446
447
    DatabaseTracker::tracker().setQuota(frame->document()->securityOrigin(), defaultQuota);
 
448
}
447
449
#endif
448
 
}
449
450
 
450
451
void ChromeClient::runOpenPanel(Frame*, PassRefPtr<FileChooser> prpFileChooser)
451
452
{