| 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.
|
|
|