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

Unified Diff: ash/frame/header_painter.h

Issue 200483004: Show avatar icon on V2 app's frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: ash/frame/header_painter.h
diff --git a/ash/frame/header_painter.h b/ash/frame/header_painter.h
index 520758310d50c8b7b6a68342521dbedaaae0e5cd..6649d151c454a0af16d8ad8dca211ee30519a3e5 100644
--- a/ash/frame/header_painter.h
+++ b/ash/frame/header_painter.h
@@ -56,6 +56,9 @@ class ASH_EXPORT HeaderPainter : public gfx::AnimationDelegate {
views::View* window_icon,
FrameCaptionButtonContainerView* caption_button_container);
+ // Sets the avatar icon to the header. Passing NULL removes the avatar icon.
+ void UpdateAvatarIcon(views::View* avatar_icon);
+
// Returns the bounds of the client view for a window with |header_height|
// and |window_bounds|. The return value and |window_bounds| are in the
// views::NonClientView's coordinates.
@@ -143,6 +146,9 @@ class ASH_EXPORT HeaderPainter : public gfx::AnimationDelegate {
// Returns the offset between window left edge and title string.
int GetTitleOffsetX() const;
+ // Returns the offset between window left edge and the window icon.
+ int GetWindowIconOffsetX() const;
+
// Returns the vertical center of the caption button container in window
// coordinates.
int GetCaptionButtonContainerCenterY() const;
@@ -160,6 +166,7 @@ class ASH_EXPORT HeaderPainter : public gfx::AnimationDelegate {
views::Widget* frame_;
views::View* header_view_;
views::View* window_icon_; // May be NULL.
+ views::View* avatar_icon_; // May be NULL.
FrameCaptionButtonContainerView* caption_button_container_;
// The height of the header.

Powered by Google App Engine
This is Rietveld 408576698