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

Side by Side Diff: Source/core/style/ComputedStyleConstants.h

Issue 1137483003: Implement direction-specific touch-action values (blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix minor nit from patch set 1 Created 5 years, 7 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
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 479
480 enum GridAutoFlow { 480 enum GridAutoFlow {
481 AutoFlowRow = InternalAutoFlowAlgorithmSparse | InternalAutoFlowDirectionRow , 481 AutoFlowRow = InternalAutoFlowAlgorithmSparse | InternalAutoFlowDirectionRow ,
482 AutoFlowColumn = InternalAutoFlowAlgorithmSparse | InternalAutoFlowDirection Column, 482 AutoFlowColumn = InternalAutoFlowAlgorithmSparse | InternalAutoFlowDirection Column,
483 AutoFlowRowDense = InternalAutoFlowAlgorithmDense | InternalAutoFlowDirectio nRow, 483 AutoFlowRowDense = InternalAutoFlowAlgorithmDense | InternalAutoFlowDirectio nRow,
484 AutoFlowColumnDense = InternalAutoFlowAlgorithmDense | InternalAutoFlowDirec tionColumn 484 AutoFlowColumnDense = InternalAutoFlowAlgorithmDense | InternalAutoFlowDirec tionColumn
485 }; 485 };
486 486
487 enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRe gionNoDrag }; 487 enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRe gionNoDrag };
488 488
489 static const size_t TouchActionBits = 4; 489 static const size_t TouchActionBits = 6;
490 enum TouchAction { 490 enum TouchAction {
491 TouchActionAuto = 0x0, 491 TouchActionAuto = 0x0,
492 TouchActionNone = 0x1, 492 TouchActionNone = 0x1,
493 TouchActionPanX = 0x2, 493 TouchActionPanLeft = 0x2,
494 TouchActionPanY = 0x4, 494 TouchActionPanRight = 0x4,
495 TouchActionPinchZoom = 0x8, 495 TouchActionPanX = TouchActionPanLeft | TouchActionPanRight,
496 TouchActionPanUp = 0x8,
497 TouchActionPanDown = 0x10,
498 TouchActionPanY = TouchActionPanUp | TouchActionPanDown,
499 TouchActionPinchZoom = 0x20,
496 }; 500 };
497 inline TouchAction operator| (TouchAction a, TouchAction b) { return TouchAction (int(a) | int(b)); } 501 inline TouchAction operator| (TouchAction a, TouchAction b) { return TouchAction (int(a) | int(b)); }
498 inline TouchAction& operator|= (TouchAction& a, TouchAction b) { return a = a | b; } 502 inline TouchAction& operator|= (TouchAction& a, TouchAction b) { return a = a | b; }
499 inline TouchAction operator& (TouchAction a, TouchAction b) { return TouchAction (int(a) & int(b)); } 503 inline TouchAction operator& (TouchAction a, TouchAction b) { return TouchAction (int(a) & int(b)); }
500 inline TouchAction& operator&= (TouchAction& a, TouchAction b) { return a = a & b; } 504 inline TouchAction& operator&= (TouchAction& a, TouchAction b) { return a = a & b; }
501 505
502 enum EIsolation { IsolationAuto, IsolationIsolate }; 506 enum EIsolation { IsolationAuto, IsolationIsolate };
503 507
504 enum ItemPosition { 508 enum ItemPosition {
505 ItemPositionAuto, 509 ItemPositionAuto,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 static const float maximumAllowedFontSize = 1000000.0f; 557 static const float maximumAllowedFontSize = 1000000.0f;
554 558
555 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; 559 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine };
556 enum TextIndentType { TextIndentNormal, TextIndentHanging }; 560 enum TextIndentType { TextIndentNormal, TextIndentHanging };
557 561
558 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox } ; 562 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox } ;
559 563
560 } // namespace blink 564 } // namespace blink
561 565
562 #endif // ComputedStyleConstants_h 566 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698