Merge pull request #6788 from electron/felix-progress-enum
Use enum to declare ProgressState
This commit is contained in:
commit
06d2dfe119
8 changed files with 36 additions and 13 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue