1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_LAYERS_SCROLL_BLOCKS_ON_H_
6 #define CC_LAYERS_SCROLL_BLOCKS_ON_H_
9 SCROLL_BLOCKS_ON_NONE
= 0x0,
10 SCROLL_BLOCKS_ON_START_TOUCH
= 0x1,
11 SCROLL_BLOCKS_ON_WHEEL_EVENT
= 0x2,
12 SCROLL_BLOCKS_ON_SCROLL_EVENT
= 0x4,
13 SCROLL_BLOCKS_ON_MAX
= SCROLL_BLOCKS_ON_START_TOUCH
|
14 SCROLL_BLOCKS_ON_WHEEL_EVENT
|
15 SCROLL_BLOCKS_ON_SCROLL_EVENT
18 inline ScrollBlocksOn
operator|(ScrollBlocksOn a
, ScrollBlocksOn b
) {
19 return ScrollBlocksOn(static_cast<int>(a
) | static_cast<int>(b
));
22 inline ScrollBlocksOn
& operator|=(ScrollBlocksOn
& a
, ScrollBlocksOn b
) {
26 #endif // CC_LAYERS_SCROLL_BLOCKS_ON_H_