From 5b3e09dcf48a717eccca25d4a99036dcefb31001 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Mon, 7 Mar 2011 03:36:28 +0000 Subject: Definition for new API method in WebKit::WebFrame. The new method (pageDismissalEventBeingDispatched) has not yet been added to the API (see https://bugs.webkit.org/show_bug.cgi?id=55844). When it is, it will be a pure virtual method; clients will break unless they already have a concrete implementation for it. BUG=68780 TEST=none Review URL: http://codereview.chromium.org/6626047 Patch from Sreeram Ramachandran . git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77101 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/mocks/mock_webframe.cc | 4 ++++ webkit/mocks/mock_webframe.h | 1 + 2 files changed, 5 insertions(+) (limited to 'webkit/mocks') diff --git a/webkit/mocks/mock_webframe.cc b/webkit/mocks/mock_webframe.cc index a230cc0..1423039 100644 --- a/webkit/mocks/mock_webframe.cc +++ b/webkit/mocks/mock_webframe.cc @@ -235,6 +235,10 @@ bool MockWebFrame::willSuppressOpenerInNewFrame() const { return false; } +bool MockWebFrame::pageDismissalEventBeingDispatched() const { + return false; +} + void MockWebFrame::replaceSelection(const WebString& text) {} void MockWebFrame::insertText(const WebString& text) {} diff --git a/webkit/mocks/mock_webframe.h b/webkit/mocks/mock_webframe.h index 830b0d6..adbf515 100644 --- a/webkit/mocks/mock_webframe.h +++ b/webkit/mocks/mock_webframe.h @@ -141,6 +141,7 @@ class MockWebFrame : public WebKit::WebFrame { virtual unsigned unloadListenerCount() const; virtual bool isProcessingUserGesture() const; virtual bool willSuppressOpenerInNewFrame() const; + virtual bool pageDismissalEventBeingDispatched() const; virtual void replaceSelection(const WebString& text); virtual void insertText(const WebString& text); virtual void setMarkedText(const WebString& text, -- cgit v1.1