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

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: Put some non-ash code back 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698