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

Side by Side Diff: chrome/browser/ui/views/frame/webapp_header_painter_ash.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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698