]> khamidou — GitHub mirrors - electron.git/commitdiff
views: Set devtools window's icon, fixes #429.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 9 Sep 2014 07:30:33 +0000 (15:30 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 9 Sep 2014 07:30:33 +0000 (15:30 +0800)
atom/browser/native_window_views.cc
atom/browser/native_window_views.h
vendor/brightray

index 42a9e70dd0f23e8c27c1604724b32ae927c17d0e..3892b7181b945fbfaa094b04f16e8a914eda1c96 100644 (file)
@@ -613,6 +613,10 @@ views::NonClientFrameView* NativeWindowViews::CreateNonClientFrameView(
   return NULL;
 }
 
+gfx::ImageSkia NativeWindowViews::GetDevToolsWindowIcon() {
+  return GetWindowAppIcon();
+}
+
 void NativeWindowViews::HandleMouseDown() {
   // Hide menu bar when web view is clicked.
   if (menu_bar_autohide_ && menu_bar_visible_) {
index ac4697c99228a9c1b822fa86273f42e4bad98a1b..3d81a68be2247404a97968752e268d4a5411c182 100644 (file)
@@ -105,6 +105,9 @@ class NativeWindowViews : public NativeWindow,
   virtual views::NonClientFrameView* CreateNonClientFrameView(
       views::Widget* widget) OVERRIDE;
 
+  // brightray::InspectableWebContentsDelegate:
+  virtual gfx::ImageSkia GetDevToolsWindowIcon() OVERRIDE;
+
   // content::WebContentsDelegate:
   virtual void HandleMouseDown() OVERRIDE;
   virtual void HandleKeyboardEvent(
index dafc85799ca31e3ddd7b5d0cc0ef7fbf38dcf88f..a108f0b10be6c0058b03ba8e89addf6ea8289b7e 160000 (submodule)
@@ -1 +1 @@
-Subproject commit dafc85799ca31e3ddd7b5d0cc0ef7fbf38dcf88f
+Subproject commit a108f0b10be6c0058b03ba8e89addf6ea8289b7e