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

Unified Diff: ui/aura/window.cc

Issue 331643004: Update the window labels if they change in overview mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 35b29245800305296a51d22587321b4717fb4bd8..f4130e4407f356e06cc135fb85a2f20ab359d181 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -305,6 +305,12 @@ void Window::SetName(const std::string& name) {
UpdateLayerName();
}
+void Window::SetTitle(const base::string16& title) {
+ title_ = title;
+ FOR_EACH_OBSERVER(WindowObserver, observers_, OnWindowTitleChanged(this,
+ title));
tdanderson 2014/06/20 22:33:23 Each of the arguments of FOR_EACH_OBSERVER on a ne
Nina 2014/06/20 23:02:37 Done.
+}
+
void Window::SetTransparent(bool transparent) {
transparent_ = transparent;
if (layer())

Powered by Google App Engine
This is Rietveld 408576698