2012-05-21 11:12:37 +00:00
/* 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/. */
2011-11-15 03:12:14 +00:00
#include "nsISupports.idl"
2012-02-04 06:48:26 +00:00
#include "nsIDOMWindow.idl"
2011-11-15 03:12:14 +00:00
2012-03-12 18:05:43 +00:00
[scriptable, uuid(0843f3c1-043e-4c64-9d8c-091370548c05)]
interface nsIBrowserTab : nsISupports {
readonly attribute nsIDOMWindow window;
readonly attribute float scale;
};
2013-09-04 13:58:23 +00:00
[scriptable, uuid(7508b826-4129-40a0-91da-2a6bba33681f)]
2012-02-17 18:52:26 +00:00
interface nsIAndroidBrowserApp : nsISupports {
2012-08-22 15:56:38 +00:00
nsIBrowserTab getBrowserTab(in int32_t tabId);
2013-09-04 13:58:23 +00:00
void getPreferences(in int32_t requestId,
[array, size_is(count)] in wstring prefNames,
in unsigned long count);
void observePreferences(in int32_t requestId,
[array, size_is(count)] in wstring prefNames,
in unsigned long count);
void removePreferenceObservers(in int32_t requestId);
2012-02-17 18:52:26 +00:00
};
2012-09-12 21:47:08 +00:00
[scriptable, uuid(59cfcb35-69b7-47b2-8155-32b193272666)]
interface nsIAndroidViewport : nsISupports {
readonly attribute float x;
readonly attribute float y;
readonly attribute float width;
readonly attribute float height;
readonly attribute float pageLeft;
readonly attribute float pageTop;
readonly attribute float pageRight;
readonly attribute float pageBottom;
readonly attribute float cssPageLeft;
readonly attribute float cssPageTop;
readonly attribute float cssPageRight;
readonly attribute float cssPageBottom;
readonly attribute float zoom;
};
[scriptable, uuid(e1bfbc07-dbae-409d-a5b5-ef57522c1f15)]
interface nsIAndroidDisplayport : nsISupports {
attribute float left;
attribute float top;
attribute float right;
attribute float bottom;
attribute float resolution;
};
2012-02-17 18:52:26 +00:00
2013-05-30 13:55:23 +00:00
[scriptable, uuid(5aa0cfa5-377c-4f5e-8dcf-59ebd9482d65)]
2011-11-15 03:12:14 +00:00
interface nsIAndroidBridge : nsISupports
{
AString handleGeckoMessage(in AString message);
2012-02-17 18:52:26 +00:00
attribute nsIAndroidBrowserApp browserApp;
2012-09-12 21:47:08 +00:00
nsIAndroidDisplayport getDisplayPort(in boolean aPageSizeUpdate, in boolean isBrowserContentDisplayed, in int32_t tabId, in nsIAndroidViewport metrics);
2013-05-30 13:55:23 +00:00
void contentDocumentChanged();
boolean isContentDocumentDisplayed();
2011-11-15 03:12:14 +00:00
};