Bug 998734 - Remove nsIAsyncScrollEventDetail; r=bzbarsky
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 26 Apr 2014 20:07:50 -0400
changeset 180799 bd1b681018c8aad41f6c7e53c9530d5d49e92798
parent 180798 ea77cc4fc2d8d6843a83f22a64994f4734f8217b
child 180858 fcf19894d9f339f73df310905520047902b009df
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersbzbarsky
bugs998734
milestone31.0a1
Bug 998734 - Remove nsIAsyncScrollEventDetail; r=bzbarsky
dom/browser-element/BrowserElementParent.h
dom/browser-element/nsIAsyncScrollEventDetail.idl
--- a/dom/browser-element/BrowserElementParent.h
+++ b/dom/browser-element/BrowserElementParent.h
@@ -104,17 +104,17 @@ public:
   OpenWindowInProcess(nsIDOMWindow* aOpenerWindow,
                       nsIURI* aURI,
                       const nsAString& aName,
                       const nsACString& aFeatures,
                       nsIDOMWindow** aReturnWindow);
 
   /**
    * Fire a mozbrowserasyncscroll CustomEvent on the given TabParent's frame element.
-   * This event's detail is an instance of nsIAsyncScrollEventDetail.
+   * This event's detail is an AsyncScrollEventDetail dictionary.
    *
    * @param aContentRect: The portion of the page which is currently visible
    *                      onscreen in CSS pixels.
    *
    * @param aContentSize: The content width/height in CSS pixels.
    *
    * aContentRect.top + aContentRect.height may be larger than aContentSize.height.
    * This indicates that the content is over-scrolled, which occurs when the
deleted file mode 100644
--- a/dom/browser-element/nsIAsyncScrollEventDetail.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#include "nsISupports.idl"
-
-/**
- * When we send a mozbrowserasyncscroll event (an instance of CustomEvent), we
- * use an instance of this interface as the event's detail.
- * [left, top, width, height]: The portion of the page which is currently 
- * visible onscreen in CSS pixels.
- * [scrollWidth, scrollHeight]: The content width/height in CSS pixels.
- *
- * top + height may be larger than scrollHeight.
- * This indicates that the content is over-scrolled, which occurs when the
- * page "rubber-bands" after being scrolled all the way to the bottom.
- * Similarly, left + width may be greater than scrollWidth, 
- * and both left and top may be negative.
- */
-[scriptable, uuid(d0c13577-31e6-4701-b9b7-3535bbe19fe6)]
-interface nsIAsyncScrollEventDetail : nsISupports
-{
-  readonly attribute float top;
-  readonly attribute float left;
-  readonly attribute float width;
-  readonly attribute float height;
-  readonly attribute float scrollWidth;
-  readonly attribute float scrollHeight;
-};