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

Side by Side Diff: ash/frame/header_painter_util.h

Issue 200483004: Show avatar icon on V2 app's frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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
« no previous file with comments | « ash/frame/default_header_painter.cc ('k') | ash/frame/header_painter_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HEADER_PAINTER_UTIL_H_ 5 #ifndef ASH_FRAME_HEADER_PAINTER_UTIL_H_
6 #define ASH_FRAME_HEADER_PAINTER_UTIL_H_ 6 #define ASH_FRAME_HEADER_PAINTER_UTIL_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
(...skipping 13 matching lines...) Expand all
24 class ASH_EXPORT HeaderPainterUtil { 24 class ASH_EXPORT HeaderPainterUtil {
25 public: 25 public:
26 // Returns the radius of the header's corners when the window is restored. 26 // Returns the radius of the header's corners when the window is restored.
27 static int GetTopCornerRadiusWhenRestored(); 27 static int GetTopCornerRadiusWhenRestored();
28 28
29 // Returns the distance between the left edge of the window and the header 29 // Returns the distance between the left edge of the window and the header
30 // icon. 30 // icon.
31 static int GetIconXOffset(); 31 static int GetIconXOffset();
32 32
33 // Returns the size of the header icon. 33 // Returns the size of the header icon.
34 static int GetIconSize(); 34 static int GetDefaultIconSize();
35 35
36 // Returns the amount that the frame background is inset from the left edge of 36 // Returns the amount that the frame background is inset from the left edge of
37 // the window. 37 // the window.
38 static int GetThemeBackgroundXInset(); 38 static int GetThemeBackgroundXInset();
39 39
40 // Returns the bounds for the header's title given the header icon, the 40 // Returns the bounds for the header's title given the header icon, the
41 // caption button container and the font used. 41 // caption button container and the font used.
42 // |icon| should be NULL if the header does not use an icon. 42 // |icon| should be NULL if the header does not use an icon.
43 static gfx::Rect GetTitleBounds(const views::View* icon, 43 static gfx::Rect GetTitleBounds(const views::View* icon,
44 const views::View* caption_button_container, 44 const views::View* caption_button_container,
45 const gfx::FontList& title_font_list); 45 const gfx::FontList& title_font_list);
46 46
47 // Returns true if the header for |widget| can animate to new visuals when the 47 // Returns true if the header for |widget| can animate to new visuals when the
48 // widget's activation changes. Returns false if the header should switch to 48 // widget's activation changes. Returns false if the header should switch to
49 // new visuals instantaneously. 49 // new visuals instantaneously.
50 static bool CanAnimateActivation(views::Widget* widget); 50 static bool CanAnimateActivation(views::Widget* widget);
51 51
52 private: 52 private:
53 DISALLOW_IMPLICIT_CONSTRUCTORS(HeaderPainterUtil); 53 DISALLOW_IMPLICIT_CONSTRUCTORS(HeaderPainterUtil);
54 }; 54 };
55 55
56 } // namespace ash 56 } // namespace ash
57 57
58 #endif // ASH_FRAME_HEADER_PAINTER_UTIL_H_ 58 #endif // ASH_FRAME_HEADER_PAINTER_UTIL_H_
OLDNEW
« no previous file with comments | « ash/frame/default_header_painter.cc ('k') | ash/frame/header_painter_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698