win: Add BrowserWindow.setThumbarButtons API.
This commit is contained in:
parent
488a69d461
commit
54af048f04
10 changed files with 343 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue