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

Unified Diff: chrome/browser/ui/views/panels/panel_frame_view.cc

Issue 10993087: Handle titlebar text updates properly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Odd - build machine failed to update patch (which I updated successfully) Re-uploading Created 8 years, 3 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
« no previous file with comments | « chrome/browser/ui/views/panels/panel_frame_view.h ('k') | ui/views/bubble/bubble_frame_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/panels/panel_frame_view.cc
diff --git a/chrome/browser/ui/views/panels/panel_frame_view.cc b/chrome/browser/ui/views/panels/panel_frame_view.cc
index c74c81fc792d8d09a96d36f17285bd892c108e9b..393771ee3a800731529f0d347b2d50b4cc4b2780 100644
--- a/chrome/browser/ui/views/panels/panel_frame_view.cc
+++ b/chrome/browser/ui/views/panels/panel_frame_view.cc
@@ -231,7 +231,7 @@ void PanelFrameView::Init() {
}
void PanelFrameView::UpdateTitle() {
- title_label_->SetText(panel_view_->panel()->GetWindowTitle());
+ UpdateWindowTitle();
}
void PanelFrameView::UpdateIcon() {
@@ -340,6 +340,10 @@ void PanelFrameView::UpdateWindowIcon() {
title_icon_->SchedulePaint();
}
+void PanelFrameView::UpdateWindowTitle() {
+ title_label_->SetText(panel_view_->panel()->GetWindowTitle());
+}
+
gfx::Size PanelFrameView::GetPreferredSize() {
gfx::Size pref_size =
panel_view_->window()->client_view()->GetPreferredSize();
« no previous file with comments | « chrome/browser/ui/views/panels/panel_frame_view.h ('k') | ui/views/bubble/bubble_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698