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

Unified Diff: ui/views/controls/throbber.h

Issue 1098853005: material throbber, take 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert namespace change Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/controls/throbber.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/throbber.h
diff --git a/ui/views/controls/throbber.h b/ui/views/controls/throbber.h
index a136a7d02e16b1487bffe902fb02b55a4578482d..8c8bb9182c4c422de80090caf1fc3cd4c7d63785 100644
--- a/ui/views/controls/throbber.h
+++ b/ui/views/controls/throbber.h
@@ -112,6 +112,16 @@ class VIEWS_EXPORT MaterialThrobber : public Throbber {
void OnPaint(gfx::Canvas* canvas) override;
private:
+ // Paints this throbber in the "waiting" state, for example when waiting for
+ // an initial network response.
+ void PaintWaiting(gfx::Canvas* canvas);
+
+ // Paints this throbber in its normal state. Corresponds to MD throbber.
+ void PaintSpinning(gfx::Canvas* canvas);
+
+ // Common painting code for PaintWaiting and PaintSpinning.
+ void PaintArc(gfx::Canvas* canvas, SkScalar start_angle, SkScalar sweep);
+
// The preferred width and height for this view. Zero indicates the size is
// set by the parent class (i.e. matches the size of the pre-material
// sprites).
« no previous file with comments | « no previous file | ui/views/controls/throbber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698