summaryrefslogtreecommitdiffstats
path: root/webkit/mocks
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 03:36:28 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 03:36:28 +0000
commit5b3e09dcf48a717eccca25d4a99036dcefb31001 (patch)
treed27013c8082adcfa28161748fbdda05ebd29b66b /webkit/mocks
parent573e3ff020361d91d17add91e90920d4a4e8035c (diff)
downloadchromium_src-5b3e09dcf48a717eccca25d4a99036dcefb31001.zip
chromium_src-5b3e09dcf48a717eccca25d4a99036dcefb31001.tar.gz
chromium_src-5b3e09dcf48a717eccca25d4a99036dcefb31001.tar.bz2
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 <sreeram@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/mocks')
-rw-r--r--webkit/mocks/mock_webframe.cc4
-rw-r--r--webkit/mocks/mock_webframe.h1
2 files changed, 5 insertions, 0 deletions
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,