Bug 1671598 [wpt PR 26128] - [AspectRatio] Fix divide by zero with a small float...
[gecko.git] / widget / headless / HeadlessKeyBindings.cpp
blob170461242644a53c9e426b70dc36e06043289159
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"
9 namespace mozilla {
10 namespace widget {
12 HeadlessKeyBindings& HeadlessKeyBindings::GetInstance() {
13 static UniquePtr<HeadlessKeyBindings> sInstance;
14 if (!sInstance) {
15 sInstance.reset(new HeadlessKeyBindings());
16 ClearOnShutdown(&sInstance);
18 return *sInstance;
21 nsresult HeadlessKeyBindings::AttachNativeKeyEvent(
22 WidgetKeyboardEvent& aEvent) {
23 // Stub for non-mac platforms.
24 return NS_OK;
27 void HeadlessKeyBindings::GetEditCommands(
28 nsIWidget::NativeKeyBindingsType aType, const WidgetKeyboardEvent& aEvent,
29 nsTArray<CommandInt>& aCommands) {
30 // Stub for non-mac platforms.
33 } // namespace widget
34 } // namespace mozilla