win: Enable setting window icon in creation options.
This commit is contained in:
parent
d5ffa4dc77
commit
baa6d9730c
4 changed files with 47 additions and 14 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "content/public/browser/notification_registrar.h"
|
||||
#include "content/public/browser/notification_observer.h"
|
||||
#include "content/public/browser/web_contents_observer.h"
|
||||
#include "ui/gfx/image/image.h"
|
||||
#include "vendor/brightray/browser/default_web_contents_delegate.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -105,6 +106,7 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
|
|||
virtual void BlurWebView();
|
||||
virtual bool IsWebViewFocused();
|
||||
virtual void RestartHangMonitorTimeout();
|
||||
virtual bool SetIcon(const std::string& path);
|
||||
|
||||
// The same with closing a tab in a real browser.
|
||||
//
|
||||
|
@ -176,6 +178,9 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
|
|||
// Whether window has standard frame.
|
||||
bool has_frame_;
|
||||
|
||||
// Window icon.
|
||||
gfx::Image icon_;
|
||||
|
||||
private:
|
||||
void RendererUnresponsiveDelayed();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue