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

Unified Diff: ash/frame/default_header_painter.h

Issue 441803004: Introduce new WebApp header style for hosted apps and fizzy apps on ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 6 years, 4 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/default_header_painter.h
diff --git a/ash/frame/default_header_painter.h b/ash/frame/default_header_painter.h
index e06c31208f145d4ea64d493db7f17b35b26168a8..a7e90af8d21c46311b797a2d4a01b687c5e998ac 100644
--- a/ash/frame/default_header_painter.h
+++ b/ash/frame/default_header_painter.h
@@ -36,7 +36,6 @@ class ASH_EXPORT DefaultHeaderPainter : public HeaderPainter,
// DefaultHeaderPainter does not take ownership of any of the parameters.
void Init(views::Widget* frame,
views::View* header_view,
- views::View* window_icon,
FrameCaptionButtonContainerView* caption_button_container);
// HeaderPainter overrides:
@@ -46,9 +45,11 @@ class ASH_EXPORT DefaultHeaderPainter : public HeaderPainter,
virtual int GetHeaderHeightForPainting() const OVERRIDE;
virtual void SetHeaderHeightForPainting(int height) OVERRIDE;
virtual void SchedulePaintForTitle() OVERRIDE;
+ virtual void UpdateHeaderOffset(int left_header_view_offset) OVERRIDE;
- // Sets the window icon for the header. Passing NULL removes the window icon.
- void UpdateWindowIcon(views::View* window_icon, int icon_size);
+ // Sets the left header view for the header. Passing NULL removes the view.
+ void UpdateLeftHeaderView(views::View* left_header_view,
+ int left_header_view_size);
private:
FRIEND_TEST_ALL_PREFIXES(DefaultHeaderPainterTest, TitleIconAlignment);
@@ -66,6 +67,9 @@ class ASH_EXPORT DefaultHeaderPainter : public HeaderPainter,
// Paints the header/content separator.
void PaintHeaderContentSeparator(gfx::Canvas* canvas);
+ // Layout the left header view.
+ void LayoutLeftHeaderView();
+
// Returns the header bounds in the coordinates of |view_|. The header is
// assumed to be positioned at the top left corner of |view_| and to have the
// same width as |view_|.
@@ -82,8 +86,9 @@ class ASH_EXPORT DefaultHeaderPainter : public HeaderPainter,
views::Widget* frame_;
views::View* view_;
- views::View* window_icon_; // May be NULL.
- int window_icon_size_;
+ views::View* left_header_view_; // May be NULL.
+ int left_header_view_size_;
+ int left_header_view_offset_;
FrameCaptionButtonContainerView* caption_button_container_;
// The height of the header including the header/content separator.

Powered by Google App Engine
This is Rietveld 408576698