Closed Bug 444772 Opened 17 years ago Closed 17 years ago

Merge nsIKBStateControl into nsIWidget

Categories

(Core :: Widget, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jchen, Assigned: jchen)

References

Details

Attachments

(1 file)

Merging nsIKBStateControl into nsIWidget makes it easier for each platform to implement the IME related methods. I compiled and tested the first patch on Windows and Linux, but I don't have the environment for Mac OS X (or Photon) which I also changed code for.
If you think you're ready to ask for review, request review (from me I guess). If it looks good I'll land it for you and I can check that it builds on Mac then.
Comment on attachment 329090 [details] [diff] [review] patch 1.0 (Windows and Linux compiled/tested) OK, thanks. I think it's ready for review.
Attachment #329090 - Flags: superreview?(roc)
Attachment #329090 - Flags: review?(roc)
Attachment #329090 - Flags: superreview?(roc)
Attachment #329090 - Flags: superreview+
Attachment #329090 - Flags: review?(roc)
Attachment #329090 - Flags: review+
Pushed 6692da1caef5. Thanks!!!
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment on attachment 329090 [details] [diff] [review] patch 1.0 (Windows and Linux compiled/tested) > nsCOMPtr<nsIWidget> widget; > res = GetEditorContentWindow(shell, GetRoot(), getter_AddRefs(widget)); > if (NS_FAILED(res)) > return res; >+ if (!widget) >+ return NS_ERROR_NOT_AVAILABLE; >+ >+ NS_ADDREF(*aWidget = widget); > > return NS_OK; You could save an addref using widget.swap(*aWidget); Or why not return GetEditorContentWindow(shell, GetRoot(), aWidget);
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: