void CapturePage(mate::Arguments* args);
void Print(mate::Arguments* args);
void SetProgressBar(double progress);
- void SetOverlayIcon(gfx::ImageSkia& overlay, const std::string& description);
+ void SetOverlayIcon(const gfx::ImageSkia& overlay,
+ const std::string& description);
void SetAutoHideMenuBar(bool auto_hide);
bool IsMenuBarAutoHide();
void SetMenuBarVisibility(bool visible);
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 void SetOverlayIcon(const gfx::ImageSkia& overlay,
+ const std::string& description) = 0;
virtual bool IsClosed() const { return is_closed_; }
virtual void OpenDevTools();
#endif
}
-void NativeWindowViews::SetOverlayIcon(gfx::ImageSkia& overlay, const std::string& description) {
+void NativeWindowViews::SetOverlayIcon(
+ const gfx::ImageSkia& overlay,
+ const std::string& description) {
#if defined(OS_WIN)
if (base::win::GetVersion() < base::win::VERSION_WIN7)
return;
FAILED(taskbar->HrInit()))) {
return;
}
+
HWND frame = views::HWNDForNativeWindow(GetNativeWindow());
- taskbar->SetOverlayIcon(frame, IconUtil::CreateHICONFromSkiaBitmap(overlay.AsBitmap()), description);
+
+ taskbar->SetOverlayIcon(frame,
+ IconUtil::CreateHICONFromSkiaBitmap(overlay.AsBitmap()),
+ description);
#endif
}
bool IsKiosk() override;
void SetMenu(ui::MenuModel* menu_model) override;
gfx::NativeWindow GetNativeWindow() override;
- void SetOverlayIcon(gfx::ImageSkia& overlay, std::string& description) override;
+ void SetOverlayIcon(const gfx::ImageSkia& overlay,
+ const std::string& description) override;
void SetProgressBar(double value) override;
void SetAutoHideMenuBar(bool auto_hide) override;
bool IsMenuBarAutoHide() override;