ThumbarHost => TaskbarHost
This commit is contained in:
parent
39af10cc8d
commit
8f8c3aef87
5 changed files with 23 additions and 23 deletions
|
@ -46,7 +46,7 @@
|
|||
#elif defined(OS_WIN)
|
||||
#include "atom/browser/ui/views/win_frame_view.h"
|
||||
#include "atom/browser/ui/win/atom_desktop_window_tree_host_win.h"
|
||||
#include "atom/browser/ui/win/thumbar_host.h"
|
||||
#include "atom/browser/ui/win/taskbar_host.h"
|
||||
#include "base/win/scoped_comptr.h"
|
||||
#include "base/win/windows_version.h"
|
||||
#include "ui/base/win/shell.h"
|
||||
|
@ -721,9 +721,9 @@ bool NativeWindowViews::IsVisibleOnAllWorkspaces() {
|
|||
bool NativeWindowViews::SetThumbarButtons(
|
||||
const std::vector<NativeWindow::ThumbarButton>& buttons) {
|
||||
#if defined(OS_WIN)
|
||||
if (!thumbar_host_)
|
||||
thumbar_host_.reset(new ThumbarHost(GetAcceleratedWidget()));
|
||||
return thumbar_host_->SetThumbarButtons(buttons);
|
||||
if (!taskbar_host_)
|
||||
taskbar_host_.reset(new TaskbarHost(GetAcceleratedWidget()));
|
||||
return taskbar_host_->SetThumbarButtons(buttons);
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
|
@ -895,8 +895,8 @@ bool NativeWindowViews::PreHandleMSG(
|
|||
UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) {
|
||||
// Handle thumbar button click message.
|
||||
if (message == WM_COMMAND && HIWORD(w_param) == THBN_CLICKED &&
|
||||
thumbar_host_)
|
||||
return thumbar_host_->HandleThumbarButtonEvent(LOWORD(w_param));
|
||||
taskbar_host_)
|
||||
return taskbar_host_->HandleThumbarButtonEvent(LOWORD(w_param));
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue