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

Unified Diff: ui/aura/window.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/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index ad3b484adf2f9f9f9d2812d7c69d38c1fb48f113..0ea01f7c544143df5878a5f5b6328ecc915e20a2 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -198,6 +198,12 @@ void Window::SetTitle(const base::string16& title) {
OnWindowTitleChanged(this));
}
+void Window::SetIcon(const gfx::ImageSkia& icon) {
+ if (!icon.isNull()) {
+ icon_ = icon;
+ }
+}
+
void Window::SetTransparent(bool transparent) {
transparent_ = transparent;
if (layer())

Powered by Google App Engine
This is Rietveld 408576698