2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
2012-05-21 15:12:37 +04:00
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-11-22 19:38:02 +03:00
|
|
|
|
|
|
|
#include "mozilla/dom/ContentChild.h"
|
|
|
|
#include "nsHapticFeedback.h"
|
|
|
|
#include "AndroidBridge.h"
|
|
|
|
|
|
|
|
using namespace mozilla;
|
|
|
|
|
2014-04-27 11:06:00 +04:00
|
|
|
NS_IMPL_ISUPPORTS(nsHapticFeedback, nsIHapticFeedback)
|
2010-11-22 19:38:02 +03:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 19:56:38 +04:00
|
|
|
nsHapticFeedback::PerformSimpleAction(int32_t aType)
|
2010-11-22 19:38:02 +03:00
|
|
|
{
|
2015-01-10 03:33:57 +03:00
|
|
|
widget::GeckoAppShell::PerformHapticFeedback(aType == LongPress);
|
2013-11-12 22:41:01 +04:00
|
|
|
return NS_OK;
|
2010-11-22 19:38:02 +03:00
|
|
|
}
|