Closed Bug 1127470 Opened 11 years ago Closed 11 years ago

Include GfxMessageUtils.h in PScreenManager.ipdl

Categories

(Core :: DOM: Content Processes, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: mikeh, Assigned: mikeh)

References

Details

Attachments

(1 file, 1 obsolete file)

I ran into this building b2g, when newly-added protocol files bumped PScreenManagerChild.cpp into the next unified-build compilation unit. The specific error encountered, posted here for posterity, was: In file included from ../../dist/include/ipc/IPCMessageUtils.h:11:0, from _ipdlheaders/mozilla/dom/PScreenManager.h:12, from _ipdlheaders/mozilla/dom/PScreenManagerChild.h:9, from PScreenManagerChild.cpp:7, from UnifiedProtocols7.cpp:2: ../../../../../m-c/b2g-inbound-2/ipc/chromium/src/chrome/common/ipc_message_utils.h: In instantiation of 'void IPC::WriteParam(IPC::Message*, const P&) [with P = nsIntRect]': _ipdlheaders/mozilla/dom/PScreenManagerChild.h:243:9: required from 'void mozilla::dom::PScreenManagerChild::Write(const T&, mozilla::dom::PScreenManagerChild::Message*) [with T = nsIntRect; mozilla::dom::PScreenManagerChild::Message = IPC::Message]' PScreenManagerChild.cpp:541:30: required from here ../../../../../m-c/b2g-inbound-2/ipc/chromium/src/chrome/common/ipc_message_utils.h:115:3: error: 'Write' is not a member of 'IPC::ParamTraits<nsIntRect>' ../../../../../m-c/b2g-inbound-2/ipc/chromium/src/chrome/common/ipc_message_utils.h: In instantiation of 'bool IPC::ReadParam(const IPC::Message*, void**, P*) [with P = nsIntRect]': _ipdlheaders/mozilla/dom/PScreenManagerChild.h:253:49: required from 'bool mozilla::dom::PScreenManagerChild::Read(T*, const Message*, void**) [with T = nsIntRect; mozilla::dom::PScreenManagerChild::Message = IPC::Message]' PScreenManagerChild.cpp:559:50: required from here ../../../../../m-c/b2g-inbound-2/ipc/chromium/src/chrome/common/ipc_message_utils.h:121:41: error: 'Read' is not a member of 'IPC::ParamTraits<nsIntRect>' ../../../../../m-c/b2g-inbound-2/ipc/chromium/src/chrome/common/ipc_message_utils.h: In function 'bool IPC::ReadParam(const IPC::Message*, void**, P*) [with P = nsIntRect]': ../../../../../m-c/b2g-inbound-2/ipc/chromium/src/chrome/common/ipc_message_utils.h:122:1: error: control reaches end of non-void function [-Werror=return-type]
Comment on attachment 8556622 [details] [diff] [review] Include GfxMessageUtils.h in PScreenManager.ipdl, v1 Review of attachment 8556622 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/ipc/PScreenManager.ipdl @@ +2,5 @@ > /* This Source Code Form is subject to the terms of the Mozilla Public > * License, v. 2.0. If a copy of the MPL was not distributed with this > * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ > > +include "mozilla/GfxMessageUtils.h"; I'd put this just above the nsIntRect line.
Attachment #8556622 - Flags: review?(bent.mozilla) → review+
Incorporating review feedback, carrying r+ forward.
Attachment #8556622 - Attachment is obsolete: true
Attachment #8556627 - Flags: review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
See Also: → 1141228
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: