1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=2:tabstop=2:
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef __nsGTKRemoteServer_h__
9 #define __nsGTKRemoteServer_h__
15 #include "nsRemoteServer.h"
16 #include "nsXRemoteServer.h"
17 #include "mozilla/Attributes.h"
19 class nsGTKRemoteServer final
: public nsXRemoteServer
{
21 nsGTKRemoteServer() : mServerWindow(nullptr) {}
22 ~nsGTKRemoteServer() override
{ Shutdown(); }
24 nsresult
Startup(const char* aAppName
, const char* aProfileName
) override
;
25 void Shutdown() override
;
27 static gboolean
HandlePropertyChange(GtkWidget
* widget
,
28 GdkEventProperty
* event
,
29 nsGTKRemoteServer
* aData
);
32 void HandleCommandsFor(GtkWidget
* aWidget
);
34 GtkWidget
* mServerWindow
;
37 #endif // __nsGTKRemoteService_h__