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

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 Sky's comments 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 7ce4dec0431140db73f8351ecff676056a762a45..7eea861e61df66e8aced2740b7f187cef199b1f0 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));
+}
+
void Window::SetTransparent(bool transparent) {
transparent_ = transparent;
if (layer())

Powered by Google App Engine
This is Rietveld 408576698