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

Unified Diff: ash/wm/frame_painter.h

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 | « ash/wm/dialog_frame_view.cc ('k') | ash/wm/frame_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/frame_painter.h
diff --git a/ash/wm/frame_painter.h b/ash/wm/frame_painter.h
index 852becb8f1ff86c26cfeb953ead331adffc80566..dd213aa616c3a41e8c61610daa17bdc599d3ed10 100644
--- a/ash/wm/frame_painter.h
+++ b/ash/wm/frame_painter.h
@@ -112,6 +112,10 @@ class ASH_EXPORT FramePainter : public aura::WindowObserver,
// not always.
void LayoutHeader(views::NonClientFrameView* view, bool shorter_layout);
+ // Schedule a re-paint of the entire title.
+ void SchedulePaintForTitle(views::NonClientFrameView* view,
+ const gfx::Font& title_font);
+
// aura::WindowObserver overrides:
virtual void OnWindowPropertyChanged(aura::Window* window,
const void* key,
@@ -162,6 +166,11 @@ class ASH_EXPORT FramePainter : public aura::WindowObserver,
// a header (or other way around).
void SchedulePaintForHeader();
+ // Get the bounds for the title. The provided |view| and |title_font| are
+ // used to determine the correct dimensions.
+ gfx::Rect GetTitleBounds(views::NonClientFrameView* view,
+ const gfx::Font& title_font);
+
static std::set<FramePainter*>* instances_;
// Not owned
« no previous file with comments | « ash/wm/dialog_frame_view.cc ('k') | ash/wm/frame_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698