michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 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 "nsISupports.idl" michael@0: michael@0: michael@0: [scriptable, uuid(91917c98-a8f3-4c98-8f10-4afb872f54c7)] michael@0: interface nsIHapticFeedback : nsISupports { michael@0: michael@0: const long ShortPress = 0; michael@0: const long LongPress = 1; michael@0: michael@0: /** michael@0: * Perform haptic feedback michael@0: * michael@0: * @param isLongPress michael@0: * indicate whether feedback is for a long press (vs. short press) michael@0: */ michael@0: void performSimpleAction(in long isLongPress); michael@0: };