Closed Bug 70219 Opened 25 years ago Closed 24 years ago

nsIMarkupDocumentViewer::zoom should be exposed through nsIDOMWindow

Categories

(Core Graveyard :: Embedding: APIs, defect, P2)

x86
All
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.1alpha

People

(Reporter: jud, Assigned: aaronlev)

References

()

Details

(Whiteboard: ready for r=)

Attachments

(1 file, 1 obsolete file)

nsIMarkupDocumentViewer::zoom is private. This needs to be exposed through nsIDOMWindow. nsIDOMWindow::Zoom should just call down through, probably, nsIDocShell's zoom method.
Blocks: 70229
*** Bug 70221 has been marked as a duplicate of this bug. ***
requesting 0.9 milestone
Keywords: mozilla0.9
Jud, this isn't going to make it into .9. I'm downgrading it because there is a font prefs API. I assume you want this to take the place of the proposed nsIWebBrowserAccessibility (bug 71737).
Status: NEW → ASSIGNED
Keywords: mozilla0.9
OS: Linux → All
Priority: -- → P2
Target Milestone: --- → mozilla1.1
ahh. if you don't need per window zoom capability, let's just invalidate this bug. I filed this because I thought you said we needed this on a per window basis?
*** Bug 71737 has been marked as a duplicate of this bug. ***
Yes, I would prefer to have it exposed on a per-window basis, but is it really okay to add methods to nsIDOMWindow?
Moving API bug ownership to David Epstein.
QA Contact: mdunn → depstein
Correction: Changing QA contact for the Embed API bugs to David Epstein.
*** Bug 70485 has been marked as a duplicate of this bug. ***
Jud, is it still okay to add this method to nsIDOMWindow?
sure is.
Whiteboard: ready for r=, sr=
Sure, from an API frozen-ness point of view it's fine to change nsIDOMWindowInternal, but why would we need this? I'm sure this will break existing pages since this will predefine a global zoom variable in all scripts out there, so anyone that uses a variable named zoom and doesn't declare it will end up either changing the font sizes, or get an exception thrown in their face if they're setting zoom to a value that's not convertable to a float. I don't like this, do we actually have a reason for doing this? Does this need to be scriptable?
Johhny, It doesn't need to be scriptable, but it's for embeddors. Is there a better place? We don't need to do zoom as an attribute, either. I would be fine with getZoom() and setZoom()
Hmm, ok, I'm fine with adding this as a [noscript] attribute, but could we rename this to |textZoom| or something less generic than just |zoom|?
Attachment #64963 - Attachment is obsolete: true
Comment on attachment 64999 [details] [diff] [review] With Johnny's improvements > attribute DOMString name; >+ /** >+ * Set/Get the document scale factor. When setting this attribute, a >+ * NS_ERROR_NOT_IMPLEMENTED error may be returned by implementations >+ * not supporting zoom. Implementations not supporting zoom should return >+ * 1.0 all the time for the Get operation. 1.0 is equals normal size, i.e. no zoom. >+ */ >+ [noscript] attribute float textZoom; >+ > readonly attribute long scrollX; > readonly attribute long scrollY; > Please push |textZoom| out to line up with the rest of the attributes. >+ if (markupViewer) >+ return markupViewer->GetTextZoom(aZoom); Add braces around this (both places), even if it's only one line, just like the rest (or most at least) of the nsGlobalWindow.cpp code does. With that, sr=jst
Attachment #64999 - Flags: superreview+
Okay, done. Now looking for r=
Whiteboard: ready for r=, sr= → ready for r=
changed qa contact to Ashish. nsIDomWindow is his area.
QA Contact: depstein → ashishbhatt
Attachment #64999 - Flags: review+
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
marking as verified
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: