Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: cc/layers/scroll_blocks_on.h

Issue 784463002: Add initial CC support for scroll-blocks-on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CC_LAYERS_SCROLL_BLOCKS_ON_H_
6 #define CC_LAYERS_SCROLL_BLOCKS_ON_H_
7
8 enum ScrollBlocksOn {
9 ScrollBlocksOnNone = 0x0,
10 ScrollBlocksOnStartTouch = 0x1,
11 ScrollBlocksOnWheelEvent = 0x2,
12 ScrollBlocksOnScrollEvent = 0x4,
13 };
14
15 inline ScrollBlocksOn operator|(ScrollBlocksOn a, ScrollBlocksOn b) {
16 return ScrollBlocksOn(static_cast<int>(a) | static_cast<int>(b));
17 }
18
19 inline ScrollBlocksOn& operator|=(ScrollBlocksOn& a, ScrollBlocksOn b) {
20 return a = a | b;
21 }
22
23 #endif // CC_LAYERS_SCROLL_BLOCKS_ON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698