Merge pull request #6768 from electron/felix-set-progress

Enable mode indication for setProgressBar
This commit is contained in:
Cheng Zhao 2016-08-09 20:58:07 +09:00 committed by GitHub
commit 81244c2221
11 changed files with 72 additions and 20 deletions

View file

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