Skip to content
Permalink
Browse files
2011-03-06 Sreeram Ramachandran <sreeram@google.com>
        Reviewed by Dimitri Glazkov.

        Expose page dismissal event status through the WebKit API for chromium
        https://bugs.webkit.org/show_bug.cgi?id=55844

        * public/WebFrame.h:
        * src/WebFrameImpl.cpp:
        (WebKit::WebFrameImpl::pageDismissalEventBeingDispatched):
        * src/WebFrameImpl.h:

Canonical link: https://commits.webkit.org/70330@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@80436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
webkit-commit-queue committed Mar 6, 2011
1 parent 36506c5 commit c43707e3c2cb5164d84b22cddffa1dc4b8425fd3
Showing with 22 additions and 0 deletions.
  1. +12 −0 Source/WebKit/chromium/ChangeLog
  2. +4 −0 Source/WebKit/chromium/public/WebFrame.h
  3. +5 −0 Source/WebKit/chromium/src/WebFrameImpl.cpp
  4. +1 −0 Source/WebKit/chromium/src/WebFrameImpl.h
@@ -1,3 +1,15 @@
2011-03-06 Sreeram Ramachandran <sreeram@google.com>

Reviewed by Dimitri Glazkov.

Expose page dismissal event status through the WebKit API for chromium
https://bugs.webkit.org/show_bug.cgi?id=55844

* public/WebFrame.h:
* src/WebFrameImpl.cpp:
(WebKit::WebFrameImpl::pageDismissalEventBeingDispatched):
* src/WebFrameImpl.h:

2011-03-05 Daniel Cheng <dcheng@chromium.org>

Reviewed by Dmitry Titov.
@@ -365,6 +365,10 @@ class WebFrame {
// with a suppressed opener.
virtual bool willSuppressOpenerInNewFrame() const = 0;

// Returns true if this frame is in the midst of executing a beforeunload
// or unload event handler.
virtual bool pageDismissalEventBeingDispatched() const = 0;


// Editing -------------------------------------------------------------

@@ -1077,6 +1077,11 @@ bool WebFrameImpl::willSuppressOpenerInNewFrame() const
return frame()->loader()->suppressOpenerInNewFrame();
}

bool WebFrameImpl::pageDismissalEventBeingDispatched() const
{
return frame()->loader()->pageDismissalEventBeingDispatched();
}

void WebFrameImpl::replaceSelection(const WebString& text)
{
RefPtr<DocumentFragment> fragment = createFragmentFromText(
@@ -138,6 +138,7 @@ class WebFrameImpl : public WebFrame, public RefCounted<WebFrameImpl> {
virtual unsigned unloadListenerCount() const;
virtual bool isProcessingUserGesture() const;
virtual bool willSuppressOpenerInNewFrame() const;
virtual bool pageDismissalEventBeingDispatched() const;
virtual void replaceSelection(const WebString&);
virtual void insertText(const WebString&);
virtual void setMarkedText(const WebString&, unsigned location, unsigned length);

0 comments on commit c43707e

Please sign in to comment.