| 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 ash { |
| 11 class FrameCaptionButton; |
| 12 class FrameCaptionButtonContainerView; |
| 13 } |
| 14 |
| 15 namespace views { |
| 16 class View; |
| 17 class Widget; |
| 18 } |
| 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 // WebAppHeaderPainter does not take ownership of any of the parameters. |
| 27 void InitForWebApp( |
| 28 views::Widget* frame, |
| 29 views::View* header_view, |
| 30 ash::FrameCaptionButton* back_button, |
| 31 ash::FrameCaptionButtonContainerView* caption_button_container); |
| 32 |
| 33 private: |
| 34 // DefaultHeaderPainter overrides: |
| 35 virtual void LayoutHeader() OVERRIDE; |
| 36 virtual views::View* GetViewToLeftOfTitle() const OVERRIDE; |
| 37 |
| 38 ash::FrameCaptionButton* back_button_; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(WebAppHeaderPainterAsh); |
| 41 }; |
| 42 |
| 43 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_WEBAPP_HEADER_PAINTER_ASH_H_ |
| OLD | NEW |