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

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

Issue 87973002: add pan-x and pan-y support to CSS touch-action parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge to trunk Created 7 years 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 enum WrapFlow { WrapFlowAuto, WrapFlowBoth, WrapFlowStart, WrapFlowEnd, WrapFlow Maximum, WrapFlowClear }; 507 enum WrapFlow { WrapFlowAuto, WrapFlowBoth, WrapFlowStart, WrapFlowEnd, WrapFlow Maximum, WrapFlowClear };
508 508
509 enum WrapThrough { WrapThroughWrap, WrapThroughNone }; 509 enum WrapThrough { WrapThroughWrap, WrapThroughNone };
510 510
511 enum RubyPosition { RubyPositionBefore, RubyPositionAfter }; 511 enum RubyPosition { RubyPositionBefore, RubyPositionAfter };
512 512
513 enum GridAutoFlow { AutoFlowNone, AutoFlowColumn, AutoFlowRow }; 513 enum GridAutoFlow { AutoFlowNone, AutoFlowColumn, AutoFlowRow };
514 514
515 enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRe gionNoDrag }; 515 enum DraggableRegionMode { DraggableRegionNone, DraggableRegionDrag, DraggableRe gionNoDrag };
516 516
517 enum TouchAction { TouchActionAuto, TouchActionNone }; 517 enum TouchAction {
518 TouchActionAuto = 0x0,
519 TouchActionNone = 0x1,
520 TouchActionPanX = 0x2,
521 TouchActionPanY = 0x4
522 };
523 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; }
518 525
519 enum EIsolation { IsolationAuto, IsolationIsolate }; 526 enum EIsolation { IsolationAuto, IsolationIsolate };
520 527
521 enum TouchActionDelay { TouchActionDelayNone, TouchActionDelayScript }; 528 enum TouchActionDelay { TouchActionDelayNone, TouchActionDelayScript };
522 529
523 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows). 530 // Reasonable maximum to prevent insane font sizes from causing crashes on some platforms (such as Windows).
524 static const float maximumAllowedFontSize = 1000000.0f; 531 static const float maximumAllowedFontSize = 1000000.0f;
525 532
526 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; 533 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine };
527 534
528 enum LayoutBox { MarginBox, BorderBox, PaddingBox, ContentBox }; 535 enum LayoutBox { MarginBox, BorderBox, PaddingBox, ContentBox };
529 536
530 } // namespace WebCore 537 } // namespace WebCore
531 538
532 #endif // RenderStyleConstants_h 539 #endif // RenderStyleConstants_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698