Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 2222703002: Aura Icon Capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Icons To Aura::Window Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index b19ee7f72780eb9ea16faf01cb956c4538ba34b6..81a1ecab5415c794820ddf3057034524283e9ebd 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -649,8 +649,10 @@ bool DesktopNativeWidgetAura::SetWindowTitle(const base::string16& title) {
void DesktopNativeWidgetAura::SetWindowIcons(const gfx::ImageSkia& window_icon,
const gfx::ImageSkia& app_icon) {
- if (content_window_)
+ if (content_window_) {
desktop_window_tree_host_->SetWindowIcons(window_icon, app_icon);
+ content_window_->SetIcon(!window_icon.isNull() ? window_icon : app_icon);
sky 2016/08/08 19:19:47 Does the window capture work on non-chromeos platf
qiangchen 2016/08/09 16:48:40 Yes. But that part of development (OS API calls) m
sky 2016/08/09 19:12:11 I wanted to make sure you really wanted this on no
qiangchen 2016/08/09 21:10:28 Yes. Currently we use aura capture for the chrome
+ }
}
void DesktopNativeWidgetAura::InitModalType(ui::ModalType modal_type) {
« ui/aura/window.h ('K') | « ui/aura/window.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698