1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9 #include "nsRemoteClient.h"
11 class nsXRemoteClient
: public nsRemoteClient
{
13 explicit nsXRemoteClient(nsACString
& aStartupToken
);
16 virtual nsresult
Init() override
;
17 virtual nsresult
SendCommandLine(const char* aProgram
, const char* aProfile
,
18 int32_t argc
, const char** argv
,
19 bool aRaise
) override
;
23 Window
CheckWindow(Window aWindow
);
24 Window
CheckChildren(Window aWindow
);
25 nsresult
GetLock(Window aWindow
, bool* aDestroyed
);
26 nsresult
FreeLock(Window aWindow
);
27 Window
FindBestWindow(const char* aProgram
, const char* aProfile
);
28 nsresult
DoSendCommandLine(Window aWindow
, int32_t argc
, const char** argv
,
29 const char* aStartupToken
, bool* aDestroyed
);
30 bool WaitForResponse(Window aWindow
, char** aResponse
, bool* aDestroyed
,
37 Atom mMozCommandLineAtom
;
38 Atom mMozResponseAtom
;
47 nsACString
& mStartupToken
;