Merge pull request #6788 from electron/felix-progress-enum

Use enum to declare ProgressState
This commit is contained in:
Cheng Zhao 2016-08-18 14:35:00 +09:00 committed by GitHub
commit 06d2dfe119
8 changed files with 36 additions and 13 deletions

View file

@ -983,7 +983,7 @@ gfx::AcceleratedWidget NativeWindowMac::GetAcceleratedWidget() {
return inspectable_web_contents()->GetView()->GetNativeView();
}
void NativeWindowMac::SetProgressBar(double progress, const std::string& mode) {
void NativeWindowMac::SetProgressBar(double progress, const NativeWindow::ProgressState state) {
NSDockTile* dock_tile = [NSApp dockTile];
// For the first time API invoked, we need to create a ContentView in DockTile.