Bug 1943650 - Command-line --help output misformatted after --dbus-service. r=emilio
[gecko.git] / toolkit / components / remote / nsGTKRemoteServer.h
blob767f2f54adb13f94c8184e4d4b8984ff47452977
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=2:tabstop=2:
3 */
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__
11 #include <gdk/gdk.h>
12 #include <gdk/gdkx.h>
13 #include <gtk/gtk.h>
15 #include "nsRemoteServer.h"
16 #include "nsXRemoteServer.h"
17 #include "mozilla/Attributes.h"
19 class nsGTKRemoteServer final : public nsXRemoteServer {
20 public:
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);
31 private:
32 void HandleCommandsFor(GtkWidget* aWidget);
34 GtkWidget* mServerWindow;
37 #endif // __nsGTKRemoteService_h__