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

Side by Side Diff: Source/core/rendering/style/RenderStyleConstants.h

Issue 134153016: add 'manipulation' support to CSS touch-action parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to trunk Created 6 years, 9 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
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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 enum WrapFlow { WrapFlowAuto, WrapFlowBoth, WrapFlowStart, WrapFlowEnd, WrapFlow Maximum, WrapFlowClear }; 504 enum WrapFlow { WrapFlowAuto, WrapFlowBoth, WrapFlowStart, WrapFlowEnd, WrapFlow Maximum, WrapFlowClear };
505 505
506 enum WrapThrough { WrapThroughWrap, WrapThroughNone }; 506 enum WrapThrough { WrapThroughWrap, WrapThroughNone };
507 507
508 enum RubyPosition { RubyPositionBefore, RubyPositionAfter }; 508 enum RubyPosition { RubyPositionBefore, RubyPositionAfter };
509 509
510 enum GridAutoFlow { AutoFlowNone, AutoFlowColumn, AutoFlowRow }; 510 enum GridAutoFlow { AutoFlowNone, AutoFlowColumn, AutoFlowRow };
511 511
512 enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRe gionNoDrag }; 512 enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRe gionNoDrag };
513 513
514 static const size_t TouchActionBits = 3; 514 static const size_t TouchActionBits = 4;
515 enum TouchAction { 515 enum TouchAction {
516 TouchActionAuto = 0x0, 516 TouchActionAuto = 0x0,
517 TouchActionNone = 0x1, 517 TouchActionNone = 0x1,
518 TouchActionPanX = 0x2, 518 TouchActionPanX = 0x2,
519 TouchActionPanY = 0x4 519 TouchActionPanY = 0x4,
520 TouchActionPinchZoom = 0x8,
520 }; 521 };
521 inline TouchAction operator| (TouchAction a, TouchAction b) { return TouchAction (int(a) | int(b)); } 522 inline TouchAction operator| (TouchAction a, TouchAction b) { return TouchAction (int(a) | int(b)); }
522 inline TouchAction& operator|= (TouchAction& a, TouchAction b) { return a = a | b; } 523 inline TouchAction& operator|= (TouchAction& a, TouchAction b) { return a = a | b; }
523 inline TouchAction operator& (TouchAction a, TouchAction b) { return TouchAction (int(a) & int(b)); } 524 inline TouchAction operator& (TouchAction a, TouchAction b) { return TouchAction (int(a) & int(b)); }
524 inline TouchAction& operator&= (TouchAction& a, TouchAction b) { return a = a & b; } 525 inline TouchAction& operator&= (TouchAction& a, TouchAction b) { return a = a & b; }
525 526
526 enum EIsolation { IsolationAuto, IsolationIsolate }; 527 enum EIsolation { IsolationAuto, IsolationIsolate };
527 528
528 enum TouchActionDelay { TouchActionDelayNone, TouchActionDelayScript }; 529 enum TouchActionDelay { TouchActionDelayNone, TouchActionDelayScript };
529 530
(...skipping 21 matching lines...) Expand all
551 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows). 552 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows).
552 static const float maximumAllowedFontSize = 1000000.0f; 553 static const float maximumAllowedFontSize = 1000000.0f;
553 554
554 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; 555 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine };
555 556
556 enum LayoutBox { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox }; 557 enum LayoutBox { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox };
557 558
558 } // namespace WebCore 559 } // namespace WebCore
559 560
560 #endif // RenderStyleConstants_h 561 #endif // RenderStyleConstants_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698