Bug 1299335 (part 5) - Streamline nsIWidget::StartPluginIME. r=mstange.
This patch changes it from |NS_IMETHOD| to |virtual MOZ_MUST_USE nsresult|.
This commit is contained in:
@@ -2148,7 +2148,7 @@ TabParent::RecvStartPluginIME(const WidgetKeyboardEvent& aKeyboardEvent,
|
||||
if (!widget) {
|
||||
return IPC_OK();
|
||||
}
|
||||
widget->StartPluginIME(aKeyboardEvent,
|
||||
Unused << widget->StartPluginIME(aKeyboardEvent,
|
||||
(int32_t&)aPanelX,
|
||||
(int32_t&)aPanelY,
|
||||
*aCommitted);
|
||||
|
||||
@@ -681,7 +681,7 @@ PuppetWidget::NotifyIMEInternal(const IMENotification& aIMENotification)
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsresult
|
||||
PuppetWidget::StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
int32_t aPanelX, int32_t aPanelY,
|
||||
nsString& aCommitted)
|
||||
|
||||
@@ -221,7 +221,8 @@ public:
|
||||
|
||||
virtual LayoutDeviceIntRect GetScreenBounds() override;
|
||||
|
||||
NS_IMETHOD StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
virtual MOZ_MUST_USE nsresult
|
||||
StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
int32_t aPanelX, int32_t aPanelY,
|
||||
nsString& aCommitted) override;
|
||||
|
||||
|
||||
@@ -508,7 +508,8 @@ public:
|
||||
|
||||
IAPZCTreeManager* APZCTM() { return mAPZC ; }
|
||||
|
||||
NS_IMETHOD StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
virtual MOZ_MUST_USE nsresult
|
||||
StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
int32_t aPanelX, int32_t aPanelY,
|
||||
nsString& aCommitted) override;
|
||||
|
||||
|
||||
@@ -1679,7 +1679,7 @@ bool nsChildView::HasPendingInputEvent()
|
||||
|
||||
#pragma mark -
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsresult
|
||||
nsChildView::StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
int32_t aPanelX, int32_t aPanelY,
|
||||
nsString& aCommitted)
|
||||
|
||||
@@ -264,7 +264,8 @@ public:
|
||||
virtual nsresult ActivateNativeMenuItemAt(const nsAString& indexString) override { return NS_ERROR_NOT_IMPLEMENTED; }
|
||||
virtual nsresult ForceUpdateNativeMenuAt(const nsAString& indexString) override { return NS_ERROR_NOT_IMPLEMENTED; }
|
||||
NS_IMETHOD NotifyIME(const IMENotification& aIMENotification) override final;
|
||||
NS_IMETHOD StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
virtual MOZ_MUST_USE nsresult
|
||||
StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
int32_t aPanelX, int32_t aPanelY,
|
||||
nsString& aCommitted) override
|
||||
{ return NS_ERROR_NOT_IMPLEMENTED; }
|
||||
|
||||
@@ -1754,7 +1754,8 @@ public:
|
||||
* (should be just under the plugin)
|
||||
* aCommitted The string committed during IME -- otherwise empty
|
||||
*/
|
||||
NS_IMETHOD StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
virtual MOZ_MUST_USE nsresult
|
||||
StartPluginIME(const mozilla::WidgetKeyboardEvent& aKeyboardEvent,
|
||||
int32_t aPanelX, int32_t aPanelY,
|
||||
nsString& aCommitted) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user