Plumb code all the way up

This commit is contained in:
Paul Betts 2015-02-06 16:12:32 -08:00
parent 66f2d18d8b
commit 0afac1e05a
4 changed files with 4 additions and 1 deletions

View file

@ -487,6 +487,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
.SetMethod("capturePage", &Window::CapturePage)
.SetMethod("print", &Window::Print)
.SetMethod("setProgressBar", &Window::SetProgressBar)
.SetMethod("setOverlayIcon", &Window::SetOverlayIcon)
.SetMethod("setAutoHideMenuBar", &Window::SetAutoHideMenuBar)
.SetMethod("isMenuBarAutoHide", &Window::IsMenuBarAutoHide)
.SetMethod("setMenuBarVisibility", &Window::SetMenuBarVisibility)

View file

@ -118,6 +118,7 @@ class Window : public mate::EventEmitter,
void CapturePage(mate::Arguments* args);
void Print(mate::Arguments* args);
void SetProgressBar(double progress);
void SetOverlayIcon(gfx::ImageSkia& overlay, const std::string& description);
void SetAutoHideMenuBar(bool auto_hide);
bool IsMenuBarAutoHide();
void SetMenuBarVisibility(bool visible);

View file

@ -142,6 +142,7 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
virtual bool HasModalDialog();
virtual gfx::NativeWindow GetNativeWindow() = 0;
virtual void SetProgressBar(double progress) = 0;
virtual void SetOverlayIcon(gfx::ImageSkia& overlay, const std::string& description) = 0;
virtual bool IsClosed() const { return is_closed_; }
virtual void OpenDevTools();

View file

@ -613,7 +613,7 @@ void NativeWindowViews::SetProgressBar(double progress) {
#endif
}
void NativeWindowViews::SetOverlayIcon(gfx::ImageSkia& overlay, std::string& description) {
void NativeWindowViews::SetOverlayIcon(gfx::ImageSkia& overlay, const std::string& description) {
#if defined(OS_WIN)
if (base::win::GetVersion() < base::win::VERSION_WIN7)
return;