Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_WEBAPP_HEADER_PAINTER_ASH_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_WEBAPP_HEADER_PAINTER_ASH_H_ | |
| 7 | |
| 8 #include "ash/frame/default_header_painter.h" | |
| 9 | |
| 10 namespace views { | |
| 11 class View; | |
| 12 class Widget; | |
| 13 } | |
| 14 | |
| 15 namespace ash { | |
| 16 class FrameCaptionButton; | |
| 17 class FrameCaptionButtonContainerView; | |
| 18 } | |
|
calamity
2014/08/06 07:07:07
nit: Move this above the views namespace.
benwells
2014/08/06 08:13:59
Done.
| |
| 19 | |
| 20 // Helper class for painting the WebApp style window header. | |
| 21 class WebAppHeaderPainterAsh : public ash::DefaultHeaderPainter { | |
| 22 public: | |
| 23 WebAppHeaderPainterAsh(); | |
| 24 virtual ~WebAppHeaderPainterAsh(); | |
| 25 | |
| 26 // DefaultHeaderPainter does not take ownership of any of the parameters. | |
|
calamity
2014/08/06 07:07:07
nit: // WebAppHeaderPainterAsh does not take owner
benwells
2014/08/06 08:13:59
Done.
| |
| 27 void Init(views::Widget* frame, | |
| 28 views::View* header_view, | |
| 29 ash::FrameCaptionButton* back_button, | |
| 30 ash::FrameCaptionButtonContainerView* caption_button_container); | |
|
calamity
2014/08/06 07:07:07
It's a bit scary that this name collides with the
benwells
2014/08/06 08:13:59
Oh yeah, good catch. Done.
| |
| 31 | |
| 32 private: | |
| 33 // DefaultHeaderPainter overrides: | |
| 34 virtual void LayoutHeader() OVERRIDE; | |
| 35 virtual views::View* GetViewToLeftOfTitle() const OVERRIDE; | |
| 36 | |
| 37 ash::FrameCaptionButton* back_button_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(WebAppHeaderPainterAsh); | |
| 40 }; | |
| 41 | |
| 42 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_WEBAPP_HEADER_PAINTER_ASH_H_ | |
| OLD | NEW |