"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "shell/browser/ui/win/taskbar_host.cc" between
electron-11.4.1.tar.gz and electron-11.4.2.tar.gz

About: Electron is a framework for creating native cross platform applications with web technologies like JavaScript, HTML, and CSS.

taskbar_host.cc  (electron-11.4.1):taskbar_host.cc  (electron-11.4.2)
skipping to change at line 117 skipping to change at line 117
wcsncpy_s(thumb_button.szTip, base::UTF8ToUTF16(button.tooltip).c_str(), wcsncpy_s(thumb_button.szTip, base::UTF8ToUTF16(button.tooltip).c_str(),
_TRUNCATE); _TRUNCATE);
} }
// Save callback. // Save callback.
callback_map_[thumb_button.iId] = button.clicked_callback; callback_map_[thumb_button.iId] = button.clicked_callback;
} }
// Finally add them to taskbar. // Finally add them to taskbar.
HRESULT r; HRESULT r;
if (thumbar_buttons_added_) if (thumbar_buttons_added_) {
r = taskbar_->ThumbBarUpdateButtons(window, kMaxButtonsCount, r = taskbar_->ThumbBarUpdateButtons(window, kMaxButtonsCount,
thumb_buttons); thumb_buttons);
else } else {
r = taskbar_->ThumbBarAddButtons(window, kMaxButtonsCount, thumb_buttons); r = taskbar_->ThumbBarAddButtons(window, kMaxButtonsCount, thumb_buttons);
}
thumbar_buttons_added_ = true; thumbar_buttons_added_ = true;
last_buttons_ = buttons; last_buttons_ = buttons;
return SUCCEEDED(r); return SUCCEEDED(r);
} }
void TaskbarHost::RestoreThumbarButtons(HWND window) { void TaskbarHost::RestoreThumbarButtons(HWND window) {
if (thumbar_buttons_added_) { if (thumbar_buttons_added_) {
thumbar_buttons_added_ = false; thumbar_buttons_added_ = false;
SetThumbarButtons(window, last_buttons_); SetThumbarButtons(window, last_buttons_);
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)