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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus.cc

Issue 2480713003: Window prerequisites for ShelfWindowWatcher panel support. (Closed)
Patch Set: Support and test pre-widget exo ShellSurface::SetApplicationId. Created 4 years, 1 month 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
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus.cc
diff --git a/ui/views/mus/desktop_window_tree_host_mus.cc b/ui/views/mus/desktop_window_tree_host_mus.cc
index 2001ba1b34d428e91189c5edb93d204726a576a4..b89b191e5ddc0f112282b511648e3db7c6f1a1ae 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus.cc
@@ -15,6 +15,7 @@
#include "ui/views/corewm/tooltip_aura.h"
#include "ui/views/mus/mus_client.h"
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
+#include "ui/views/widget/native_widget_aura.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/wm/core/window_util.h"
#include "ui/wm/public/activation_client.h"
@@ -328,14 +329,7 @@ void DesktopWindowTreeHostMus::SetOpacity(float opacity) {
void DesktopWindowTreeHostMus::SetWindowIcons(const gfx::ImageSkia& window_icon,
const gfx::ImageSkia& app_icon) {
- if (window_icon.isNull() && app_icon.isNull()) {
- window()->ClearProperty(aura::client::kWindowIconKey);
- return;
- }
-
- window()->SetProperty(
- aura::client::kWindowIconKey,
- new gfx::ImageSkia(!window_icon.isNull() ? window_icon : app_icon));
+ NativeWidgetAura::AssignIconToAuraWindow(window(), window_icon, app_icon);
}
void DesktopWindowTreeHostMus::InitModalType(ui::ModalType modal_type) {
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698