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

Side by Side Diff: ash/frame/default_header_painter.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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ 5 #ifndef ASH_FRAME_DEFAULT_HEADER_PAINTER_H_
6 #define ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ 6 #define ASH_FRAME_DEFAULT_HEADER_PAINTER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/frame/header_painter.h" 9 #include "ash/frame/header_painter.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void PaintHeaderContentSeparator(gfx::Canvas* canvas); 67 void PaintHeaderContentSeparator(gfx::Canvas* canvas);
68 68
69 // Returns the header bounds in the coordinates of |view_|. The header is 69 // Returns the header bounds in the coordinates of |view_|. The header is
70 // assumed to be positioned at the top left corner of |view_| and to have the 70 // assumed to be positioned at the top left corner of |view_| and to have the
71 // same width as |view_|. 71 // same width as |view_|.
72 gfx::Rect GetLocalBounds() const; 72 gfx::Rect GetLocalBounds() const;
73 73
74 // Returns the bounds for the title. 74 // Returns the bounds for the title.
75 gfx::Rect GetTitleBounds() const; 75 gfx::Rect GetTitleBounds() const;
76 76
77 // Returns the view to the left of the title.
78 virtual views::View* GetViewToLeftOfTitle() const;
79
77 // Returns the frame image to use when |frame_| is active. 80 // Returns the frame image to use when |frame_| is active.
78 gfx::ImageSkia* GetActiveFrameImage() const; 81 gfx::ImageSkia* GetActiveFrameImage() const;
79 82
80 // Returns the frame image to use when |frame_| is inactive. 83 // Returns the frame image to use when |frame_| is inactive.
81 gfx::ImageSkia* GetInactiveFrameImage() const; 84 gfx::ImageSkia* GetInactiveFrameImage() const;
82 85
83 views::Widget* frame_; 86 views::Widget* frame_;
84 views::View* view_; 87 views::View* view_;
85 views::View* window_icon_; // May be NULL. 88 views::View* window_icon_; // May be NULL.
86 int window_icon_size_; 89 int window_icon_size_;
87 FrameCaptionButtonContainerView* caption_button_container_; 90 FrameCaptionButtonContainerView* caption_button_container_;
88 91
89 // The height of the header including the header/content separator. 92 // The height of the header including the header/content separator.
90 int height_; 93 int height_;
91 94
92 // Whether the header should be painted as active. 95 // Whether the header should be painted as active.
93 Mode mode_; 96 Mode mode_;
94 97
95 // Whether the header is painted for the first time. 98 // Whether the header is painted for the first time.
96 bool initial_paint_; 99 bool initial_paint_;
97 100
98 scoped_ptr<gfx::SlideAnimation> activation_animation_; 101 scoped_ptr<gfx::SlideAnimation> activation_animation_;
99 102
100 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); 103 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter);
101 }; 104 };
102 105
103 } // namespace ash 106 } // namespace ash
104 107
105 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ 108 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698