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

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: Fixed Rob's nits 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..455e7fb6a153ac8a4ecb7292fc299556f85ba875 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -305,6 +305,13 @@ 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));
sky 2014/06/25 16:24:44 Callers that care about the title can ask for it.
Nina 2014/06/25 19:54:40 Done. I was following the same logic as OnWindowPa
+}
+
void Window::SetTransparent(bool transparent) {
transparent_ = transparent;
if (layer())

Powered by Google App Engine
This is Rietveld 408576698