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

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

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 2 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/rendering/RenderListBox.cpp ('k') | Source/core/rendering/RenderMeter.h » ('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) 2003 Apple Computer, Inc. 2 * Copyright (C) 2003 Apple Computer, Inc.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 int speed() const { return m_speed; } 61 int speed() const { return m_speed; }
62 int marqueeSpeed() const; 62 int marqueeSpeed() const;
63 63
64 EMarqueeDirection reverseDirection() const { return static_cast<EMarqueeDire ction>(-direction()); } 64 EMarqueeDirection reverseDirection() const { return static_cast<EMarqueeDire ction>(-direction()); }
65 EMarqueeDirection direction() const; 65 EMarqueeDirection direction() const;
66 66
67 bool isHorizontal() const; 67 bool isHorizontal() const;
68 68
69 int computePosition(EMarqueeDirection, bool stopAtClientEdge); 69 int computePosition(EMarqueeDirection, bool stopAtClientEdge);
70 70
71 void setEnd(int end) { m_end = end; }
72
73 void start(); 71 void start();
74 void suspend(); 72 void suspend();
75 void stop(); 73 void stop();
76 74
77 // FIXME: This function should be private and called at layout time. 75 // FIXME: This function should be private and called at layout time.
78 // However <marquee> tests are very timing dependent so we need to keep the existing timing. 76 // However <marquee> tests are very timing dependent so we need to keep the existing timing.
79 void updateMarqueePosition(); 77 void updateMarqueePosition();
80 78
81 void timerFired(); 79 void timerFired();
82 80
(...skipping 17 matching lines...) Expand all
100 bool m_suspended : 1; 98 bool m_suspended : 1;
101 bool m_stopped : 1; 99 bool m_stopped : 1;
102 EMarqueeDirection m_direction : 4; 100 EMarqueeDirection m_direction : 4;
103 }; 101 };
104 102
105 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMarquee, isMarquee()); 103 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMarquee, isMarquee());
106 104
107 } // namespace blink 105 } // namespace blink
108 106
109 #endif // RenderMarquee_h 107 #endif // RenderMarquee_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListBox.cpp ('k') | Source/core/rendering/RenderMeter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698