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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 754813002: Expose setting API to set ImageAnimationPolicy(Allowed, Once, None) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Support three options for animations Created 6 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 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class RenderBlock; 64 class RenderBlock;
65 class RenderFlowThread; 65 class RenderFlowThread;
66 class RenderGeometryMap; 66 class RenderGeometryMap;
67 class RenderLayer; 67 class RenderLayer;
68 class RenderLayerModelObject; 68 class RenderLayerModelObject;
69 class RenderView; 69 class RenderView;
70 class TransformState; 70 class TransformState;
71 71
72 struct PaintInfo; 72 struct PaintInfo;
73 73
74 enum AnimatedImageType {
75 AnimatedImageTypeNone,
76 AnimatedImageTypeOnce,
77 AnimatedImageTypeNormal
78 };
79
74 enum CursorDirective { 80 enum CursorDirective {
75 SetCursorBasedOnStyle, 81 SetCursorBasedOnStyle,
76 SetCursor, 82 SetCursor,
77 DoNotSetCursor 83 DoNotSetCursor
78 }; 84 };
79 85
80 enum HitTestFilter { 86 enum HitTestFilter {
81 HitTestAll, 87 HitTestAll,
82 HitTestSelf, 88 HitTestSelf,
83 HitTestDescendants 89 HitTestDescendants
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 949
944 virtual int caretMinOffset() const; 950 virtual int caretMinOffset() const;
945 virtual int caretMaxOffset() const; 951 virtual int caretMaxOffset() const;
946 952
947 virtual int previousOffset(int current) const; 953 virtual int previousOffset(int current) const;
948 virtual int previousOffsetForBackwardDeletion(int current) const; 954 virtual int previousOffsetForBackwardDeletion(int current) const;
949 virtual int nextOffset(int current) const; 955 virtual int nextOffset(int current) const;
950 956
951 virtual void imageChanged(ImageResource*, const IntRect* = 0) override final ; 957 virtual void imageChanged(ImageResource*, const IntRect* = 0) override final ;
952 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { } 958 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { }
953 virtual bool willRenderImage(ImageResource*) override final; 959 virtual bool willRenderImage(ImageResource*, bool repeated = false) override final;
954 960
955 void selectionStartEnd(int& spos, int& epos) const; 961 void selectionStartEnd(int& spos, int& epos) const;
956 962
957 void remove() { if (parent()) parent()->removeChild(this); } 963 void remove() { if (parent()) parent()->removeChild(this); }
958 964
959 bool isInert() const; 965 bool isInert() const;
960 966
961 bool supportsTouchAction() const; 967 bool supportsTouchAction() const;
962 968
963 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style() ->pointerEvents() != PE_NONE) && !isInert(); } 969 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style() ->pointerEvents() != PE_NONE) && !isInert(); }
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 void showTree(const blink::RenderObject*); 1620 void showTree(const blink::RenderObject*);
1615 void showLineTree(const blink::RenderObject*); 1621 void showLineTree(const blink::RenderObject*);
1616 void showRenderTree(const blink::RenderObject* object1); 1622 void showRenderTree(const blink::RenderObject* object1);
1617 // We don't make object2 an optional parameter so that showRenderTree 1623 // We don't make object2 an optional parameter so that showRenderTree
1618 // can be called from gdb easily. 1624 // can be called from gdb easily.
1619 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1625 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1620 1626
1621 #endif 1627 #endif
1622 1628
1623 #endif // RenderObject_h 1629 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698