Skip to content

Commit

Permalink
Fixed compilation with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Oct 12, 2014
1 parent 19d7b5a commit 27647dd
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion embedding/embedlite/PEmbedLiteApp.ipdl
Expand Up @@ -7,7 +7,7 @@ include protocol PEmbedLiteView;
namespace mozilla {
namespace embedlite {

intr protocol PEmbedLiteApp {
prio(normal upto high) intr protocol PEmbedLiteApp {
manages PEmbedLiteView;
parent:
async Initialized();
Expand Down
4 changes: 2 additions & 2 deletions embedding/embedlite/PEmbedLiteView.ipdl
Expand Up @@ -27,7 +27,7 @@ using struct mozilla::layers::ZoomConstraints from "FrameMetrics.h";
namespace mozilla {
namespace embedlite {

intr protocol PEmbedLiteView {
prio(normal upto high) intr protocol PEmbedLiteView {
manager PEmbedLiteApp;
child:
async LoadURL(nsString url);
Expand Down Expand Up @@ -104,7 +104,7 @@ parent:
sync SyncMessage(nsString aMessage, nsString aJSON)
returns (nsString[] retval);

rpc RpcMessage(nsString aMessage, nsString aJSON)
prio(high) sync RpcMessage(nsString aMessage, nsString aJSON)
returns (nsString[] retval);

// IME
Expand Down
8 changes: 4 additions & 4 deletions embedding/embedlite/embedthread/EmbedLitePuppetWidget.cpp
Expand Up @@ -310,9 +310,9 @@ EmbedLitePuppetWidget::DispatchEvent(WidgetGUIEvent* event, nsEventStatus& aStat
mIMEComposing = false;
mIMEComposingText.Truncate();
break;
case NS_TEXT_TEXT:
case NS_COMPOSITION_CHANGE:
MOZ_ASSERT(mIMEComposing);
mIMEComposingText = static_cast<WidgetTextEvent*>(event)->theText;
mIMEComposingText = static_cast<WidgetCompositionEvent*>(event)->mData;
break;
}

Expand Down Expand Up @@ -402,9 +402,9 @@ EmbedLitePuppetWidget::RemoveIMEComposition()

nsRefPtr<EmbedLitePuppetWidget> kungFuDeathGrip(this);

WidgetTextEvent textEvent(true, NS_TEXT_TEXT, this);
WidgetCompositionEvent textEvent(true, NS_COMPOSITION_CHANGE, this);
textEvent.time = PR_Now() / 1000;
textEvent.theText = mIMEComposingText;
textEvent.mData = mIMEComposingText;
nsEventStatus status;
DispatchEvent(&textEvent, status);

Expand Down
8 changes: 4 additions & 4 deletions embedding/embedlite/embedthread/EmbedLiteViewThreadChild.cpp
Expand Up @@ -454,7 +454,7 @@ EmbedLiteViewThreadChild::DoCallRpcMessage(const char16_t* aMessageName, const c
{
LOGT("msg:%s, data:%s", NS_ConvertUTF16toUTF8(aMessageName).get(), NS_ConvertUTF16toUTF8(aMessage).get());
if (mRegisteredMessages.Get(nsDependentString(aMessageName))) {
CallRpcMessage(nsDependentString(aMessageName), nsDependentString(aMessage), aJSONRetVal);
SendRpcMessage(nsDependentString(aMessageName), nsDependentString(aMessage), aJSONRetVal);
}
return true;
}
Expand Down Expand Up @@ -751,12 +751,12 @@ EmbedLiteViewThreadChild::RecvHandleTextEvent(const nsString& commit, const nsSt
if (StartComposite || UpdateComposite || EndComposite) {
WidgetCompositionEvent updateEvent(true, NS_COMPOSITION_UPDATE, widget);
InitEvent(updateEvent, nullptr);
updateEvent.data = pushStr;
updateEvent.mData = pushStr;
mHelper->DispatchWidgetEvent(updateEvent);

WidgetTextEvent event(true, NS_TEXT_TEXT, widget);
WidgetCompositionEvent event(true, NS_COMPOSITION_CHANGE, widget);
InitEvent(event, nullptr);
event.theText = pushStr;
event.mData = pushStr;
mHelper->DispatchWidgetEvent(event);

nsCOMPtr<nsIPresShell> ps = mHelper->GetPresContext()->GetPresShell();
Expand Down
6 changes: 3 additions & 3 deletions embedding/embedlite/embedthread/EmbedLiteViewThreadParent.cpp
Expand Up @@ -490,9 +490,9 @@ EmbedLiteViewThreadParent::RecvSyncMessage(const nsString& aMessage,
}

bool
EmbedLiteViewThreadParent::AnswerRpcMessage(const nsString& aMessage,
const nsString& aJSON,
InfallibleTArray<nsString>* aJSONRetVal)
EmbedLiteViewThreadParent::RecvRpcMessage(const nsString& aMessage,
const nsString& aJSON,
InfallibleTArray<nsString>* aJSONRetVal)
{
return RecvSyncMessage(aMessage, aJSON, aJSONRetVal);
}
Expand Down
6 changes: 3 additions & 3 deletions embedding/embedlite/embedthread/EmbedLiteViewThreadParent.h
Expand Up @@ -78,9 +78,9 @@ class EmbedLiteViewThreadParent : public PEmbedLiteViewParent,
virtual bool RecvSyncMessage(const nsString& aMessage,
const nsString& aJSON,
InfallibleTArray<nsString>* aJSONRetVal) MOZ_OVERRIDE;
virtual bool AnswerRpcMessage(const nsString& aMessage,
const nsString& aJSON,
InfallibleTArray<nsString>* aJSONRetVal) MOZ_OVERRIDE;
virtual bool RecvRpcMessage(const nsString& aMessage,
const nsString& aJSON,
InfallibleTArray<nsString>* aJSONRetVal) MOZ_OVERRIDE;
virtual bool
RecvUpdateZoomConstraints(const uint32_t& aPresShellId,
const ViewID& aViewId,
Expand Down

0 comments on commit 27647dd

Please sign in to comment.