fix: enable navigator.setAppBadge/clearAppBadge (#27067)
This commit is contained in:
parent
8b74361b0c
commit
c5a41defbd
19 changed files with 481 additions and 41 deletions
|
@ -166,13 +166,12 @@ bool TaskbarHost::SetProgressBar(HWND window,
|
|||
}
|
||||
|
||||
bool TaskbarHost::SetOverlayIcon(HWND window,
|
||||
const gfx::Image& overlay,
|
||||
const SkBitmap& overlay,
|
||||
const std::string& text) {
|
||||
if (!InitializeTaskbar())
|
||||
return false;
|
||||
|
||||
base::win::ScopedHICON icon(
|
||||
IconUtil::CreateHICONFromSkBitmap(overlay.AsBitmap()));
|
||||
base::win::ScopedHICON icon(IconUtil::CreateHICONFromSkBitmap(overlay));
|
||||
return SUCCEEDED(taskbar_->SetOverlayIcon(window, icon.get(),
|
||||
base::UTF8ToUTF16(text).c_str()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue