Bug 1171182 - Browser Zoom Query for NPAPI; r=bsmedberg r=jaas

This commit is contained in:
Kyle Machulis
2016-03-17 12:00:59 -07:00
parent 950302af36
commit d37bea3dcb
11 changed files with 122 additions and 15 deletions

View File

@@ -100,6 +100,7 @@ public:
nsresult GetDrawingModel(int32_t* aModel);
nsresult IsRemoteDrawingCoreAnimation(bool* aDrawing);
nsresult ContentsScaleFactorChanged(double aContentsScaleFactor);
nsresult CSSZoomFactorChanged(float aCSSZoomFactor);
nsresult GetJSObject(JSContext *cx, JSObject** outObject);
bool ShouldCache();
nsresult IsWindowless(bool* isWindowless);
@@ -306,6 +307,9 @@ public:
// Returns the contents scale factor of the screen the plugin is drawn on.
double GetContentsScaleFactor();
// Returns the css zoom factor of the document the plugin is drawn on.
float GetCSSZoomFactor();
nsresult GetRunID(uint32_t *aRunID);
static bool InPluginCallUnsafeForReentry() { return gInUnsafePluginCalls > 0; }