win: Add BrowserWindow.setThumbarButtons API.

This commit is contained in:
Haojian Wu 2015-08-02 11:11:29 +08:00
parent 488a69d461
commit 54af048f04
10 changed files with 343 additions and 0 deletions

View file

@ -14,6 +14,10 @@
#include "atom/browser/native_window_observer.h"
#include "native_mate/handle.h"
#if defined(OS_WIN)
#include "atom/browser/ui/win/thumbar_host.h"
#endif
class GURL;
namespace gfx {
@ -129,6 +133,10 @@ class Window : public mate::TrackableObject<Window>,
void SetProgressBar(double progress);
void SetOverlayIcon(const gfx::Image& overlay,
const std::string& description);
#if defined(OS_WIN)
void SetThumbarButtons(
const std::vector<ThumbarHost::ThumbarButton>& buttons);
#endif
void SetMenu(v8::Isolate* isolate, v8::Local<v8::Value> menu);
void SetAutoHideMenuBar(bool auto_hide);
bool IsMenuBarAutoHide();