🔧 Use enum to declare ProgressState

As recommended in #6768, this commit adds an enum for progress states for windows.
This commit is contained in:
Felix Rieseberg 2016-08-09 16:05:44 -07:00
parent ab0d726594
commit 8b85ee8a20
8 changed files with 36 additions and 13 deletions

View file

@ -143,8 +143,16 @@ class NativeWindow : public base::SupportsUserData,
virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
// Taskbar/Dock APIs.
enum ProgressState {
PROGRESS_NONE, // no progress, no marking
PROGRESS_INDETERMINATE, // progress, indeterminate
PROGRESS_ERROR, // progress, errored (red)
PROGRESS_PAUSED, // progress, paused (yellow)
PROGRESS_NORMAL, // progress, not marked (green)
};
virtual void SetProgressBar(double progress,
const std::string& mode) = 0;
const ProgressState state) = 0;
virtual void SetOverlayIcon(const gfx::Image& overlay,
const std::string& description) = 0;