Expose NativeWindow.setThumbarButtons API to all platforms.
This commit is contained in:
parent
78eac4116c
commit
2f1cb8b52a
10 changed files with 35 additions and 52 deletions
|
@ -11,13 +11,10 @@
|
|||
#include "base/memory/scoped_ptr.h"
|
||||
#include "ui/gfx/image/image.h"
|
||||
#include "atom/browser/api/trackable_object.h"
|
||||
#include "atom/browser/native_window.h"
|
||||
#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 {
|
||||
|
@ -133,10 +130,8 @@ 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
|
||||
const std::vector<NativeWindow::ThumbarButton>& buttons);
|
||||
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