michael@0: /* -*- Mode: c++; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "mozilla/dom/ContentChild.h" michael@0: #include "nsHapticFeedback.h" michael@0: #include "AndroidBridge.h" michael@0: michael@0: using namespace mozilla; michael@0: michael@0: NS_IMPL_ISUPPORTS(nsHapticFeedback, nsIHapticFeedback) michael@0: michael@0: NS_IMETHODIMP michael@0: nsHapticFeedback::PerformSimpleAction(int32_t aType) michael@0: { michael@0: mozilla::widget::android::GeckoAppShell::PerformHapticFeedback(aType == LongPress); michael@0: return NS_OK; michael@0: }