OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef AddEventListenerOptionsDefaults_h | 5 #ifndef AddEventListenerOptionsDefaults_h |
6 #define AddEventListenerOptionsDefaults_h | 6 #define AddEventListenerOptionsDefaults_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 // Defines the default for 'passive' field used in the AddEventListenerOptions i
nterface | 10 // Defines the default for 'passive' field used in the AddEventListenerOptions |
11 // when javascript calls addEventListener. | 11 // interface when javascript calls addEventListener. |
12 // |False| is the default specified in | 12 // |False| is the default specified in |
13 // https://dom.spec.whatwg.org/#dictdef-addeventlisteneroptions. However | 13 // https://dom.spec.whatwg.org/#dictdef-addeventlisteneroptions. However |
14 // specifying a different default value is useful in demonstrating the | 14 // specifying a different default value is useful in demonstrating the |
15 // power of passive event listeners. | 15 // power of passive event listeners. |
16 enum class PassiveListenerDefault { | 16 enum class PassiveListenerDefault { |
17 False, // Default of false. | 17 False, // Default of false. |
18 True, // Default of true. | 18 True, // Default of true. |
19 ForceAllTrue // Force all values to be true even when specified. | 19 ForceAllTrue // Force all values to be true even when specified. |
20 }; | 20 }; |
21 | 21 |
22 } // namespace blink | 22 } // namespace blink |
23 | 23 |
24 #endif // AddEventListenerOptionsDefaults_h | 24 #endif // AddEventListenerOptionsDefaults_h |
OLD | NEW |