| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Samsung Electronics | 2 * Copyright (C) 2012 Samsung Electronics |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 #include "modules/vibration/VibrationController.h" | 20 #include "modules/vibration/VibrationController.h" |
| 21 | 21 |
| 22 #include "bindings/modules/v8/UnsignedLongOrUnsignedLongSequence.h" | 22 #include "bindings/modules/v8/UnsignedLongOrUnsignedLongSequence.h" |
| 23 #include "core/dom/Document.h" | 23 #include "core/dom/Document.h" |
| 24 #include "core/frame/Navigator.h" | 24 #include "core/frame/Navigator.h" |
| 25 #include "core/frame/UseCounter.h" | |
| 26 #include "core/page/Page.h" | 25 #include "core/page/Page.h" |
| 27 #include "platform/mojo/MojoHelper.h" | 26 #include "platform/mojo/MojoHelper.h" |
| 28 #include "public/platform/InterfaceProvider.h" | 27 #include "public/platform/InterfaceProvider.h" |
| 29 | 28 |
| 30 // Maximum number of entries in a vibration pattern. | 29 // Maximum number of entries in a vibration pattern. |
| 31 const unsigned kVibrationPatternLengthMax = 99; | 30 const unsigned kVibrationPatternLengthMax = 99; |
| 32 | 31 |
| 33 // Maximum duration of a vibration is 10 seconds. | 32 // Maximum duration of a vibration is 10 seconds. |
| 34 const unsigned kVibrationDurationMsMax = 10000; | 33 const unsigned kVibrationDurationMsMax = 10000; |
| 35 | 34 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 if (!page()->isPageVisible()) | 182 if (!page()->isPageVisible()) |
| 184 cancel(); | 183 cancel(); |
| 185 } | 184 } |
| 186 | 185 |
| 187 DEFINE_TRACE(VibrationController) { | 186 DEFINE_TRACE(VibrationController) { |
| 188 ContextLifecycleObserver::trace(visitor); | 187 ContextLifecycleObserver::trace(visitor); |
| 189 PageVisibilityObserver::trace(visitor); | 188 PageVisibilityObserver::trace(visitor); |
| 190 } | 189 } |
| 191 | 190 |
| 192 } // namespace blink | 191 } // namespace blink |
| OLD | NEW |