Closed Bug 142814 Opened 22 years ago Closed 22 years ago

ToolTips not implemented in PPEmbed

Categories

(Core Graveyard :: Embedding: Mac, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ccarlen, Assigned: ccarlen)

References

Details

(Whiteboard: [needs a=, drivers emailed 5/29])

Attachments

(1 file, 3 obsolete files)

Summary says it all - patch coming soon.
Summary: ToolTips not implemented in PEmbed → ToolTips not implemented in PPEmbed
Attached patch patch (obsolete) — Splinter Review
Uses the Carbon Help mgr, which makes really lovely tooltips on OS X, makes the methods virtual in case somebody wanted something else. Pink, can you r=?
Comment on attachment 82658 [details] [diff] [review] patch nice. r=pink. shouldn't the "show tooltip" code in gecko be filtering out chrome tooltips rather than CBrowserShell?
Attachment #82658 - Flags: review+
> shouldn't the "show tooltip" code in gecko be filtering out chrome tooltips rather than CBrowserShell? I think so. Something must be doing that somewhere in the browser (non-embedded). Either the tooltips should be filtered or at least have some useful content. In testing, in the prefs dialog, I found that a tooltip kept popping up, no matter where the mouse was, which just said "Preferences" Any idea where a bug should go or who to ask about the content of tooltips in XUL dialogs?
CC'ing scc for sr=
BTW, because of using HMHideTag(), this is no longer buildable with the Universal Interfaces (3.4) which came with CW 7.0. It now requires the current standard mozilla build environment (Universal Interfaces 3.4.1 and CarbonLib 1.5) CarbonLib 1.2 should be enough but can't say for certain.
Attached patch better patch (obsolete) — Splinter Review
In the old patch, code in PPEmbed ignored requests for tool tips in chrome windows. I changed the default tool tip text provider to not get the text from certain element types. Need review.
Attachment #82658 - Attachment is obsolete: true
Comment on attachment 82825 [details] [diff] [review] better patch + if (!elemTag.Equals(tag_dialog) && + !elemTag.Equals(tag_dialogheader) && + !elemTag.Equals(tag_window)) { rather than take the hit of 3 string compares here every time, I'd rather you used nsIContent's version of GetTagName which supports atoms instead of strings. Then we're down to 3 ptr compares instead of 3 string compares
Attached patch using atoms (obsolete) — Splinter Review
3rd time's the charm?
Attachment #82825 - Attachment is obsolete: true
Comment on attachment 82855 [details] [diff] [review] using atoms r=pink
Attachment #82855 - Flags: review+
*** Bug 145149 has been marked as a duplicate of this bug. ***
Comment on attachment 82855 [details] [diff] [review] using atoms Use |NS_IMETHOD|, not |virtual NS_METHOD|. The following leaks reference counts: + mTag_dialog = NS_NewAtom("dialog"); + mTag_dialogheader = NS_NewAtom("dialogheader"); + mTag_window = NS_NewAtom("window"); You need to wrap each call with |getter_AddRefs()|.
Attachment #82855 - Flags: needs-work+
need sr=.
Attachment #82855 - Attachment is obsolete: true
Comment on attachment 84345 [details] [diff] [review] addresses Patrick's comments Forwarding Pink's r=.
Attachment #84345 - Flags: review+
Comment on attachment 84345 [details] [diff] [review] addresses Patrick's comments sr=beard
Attachment #84345 - Flags: superreview+
landed on trunk. needs adt/a= so embedding apps that want to use the branch as a sample for mac tooltip code get the goodness.
Keywords: adt1.0.0
Whiteboard: [needs a=, drivers emailed 5/29]
Awesome.... Verified on OS X PP Embed trunk 2002-05-29-08
please land on the 1.0.1 branch ASAP. once landed, please remove the mozilla1.0.1+ keyword and add the fixed1.0.1 keyword.
Attachment #84345 - Flags: approval+
adding adt1.0.1+. Please check into the branch as soon as possible.
Keywords: adt1.0.1adt1.0.1+
landed on trunk and branch.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verified on PPEmbed branch (2002-06-05-05 1.0.0)
Status: RESOLVED → VERIFIED
Keywords: verified1.0.1
Keywords: mozilla1.0.1+
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: