1 /* -*- Mode: C++; tab-width: 2; 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/. */
6 #include "HeadlessKeyBindings.h"
7 #include "mozilla/ClearOnShutdown.h"
12 HeadlessKeyBindings
& HeadlessKeyBindings::GetInstance() {
13 static UniquePtr
<HeadlessKeyBindings
> sInstance
;
15 sInstance
.reset(new HeadlessKeyBindings());
16 ClearOnShutdown(&sInstance
);
21 nsresult
HeadlessKeyBindings::AttachNativeKeyEvent(
22 WidgetKeyboardEvent
& aEvent
) {
23 // Stub for non-mac platforms.
27 void HeadlessKeyBindings::GetEditCommands(
28 nsIWidget::NativeKeyBindingsType aType
, const WidgetKeyboardEvent
& aEvent
,
29 nsTArray
<CommandInt
>& aCommands
) {
30 // Stub for non-mac platforms.
34 } // namespace mozilla