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

Unified Diff: ash/frame/header_painter_util.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: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/frame/header_painter.h ('k') | ash/frame/header_painter_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/frame/header_painter_util.h
diff --git a/ash/frame/header_painter_util.h b/ash/frame/header_painter_util.h
index 5e4bde42506d0368061f4c80a80549711913533f..de14990eed871f26bd2a426a6b30e74bb54ef37c 100644
--- a/ash/frame/header_painter_util.h
+++ b/ash/frame/header_painter_util.h
@@ -26,22 +26,19 @@ class ASH_EXPORT HeaderPainterUtil {
// Returns the radius of the header's corners when the window is restored.
static int GetTopCornerRadiusWhenRestored();
- // Returns the distance between the left edge of the window and the header
- // icon.
- static int GetIconXOffset();
-
- // Returns the size of the header icon.
- static int GetDefaultIconSize();
+ // Returns the default distance between the left edge of the window and the
+ // leftmost view in the header.
+ static int GetDefaultLeftViewXInset();
// Returns the amount that the frame background is inset from the left edge of
// the window.
static int GetThemeBackgroundXInset();
- // Returns the bounds for the header's title given the header icon, the
- // caption button container and the font used.
- // |icon| should be NULL if the header does not use an icon.
- static gfx::Rect GetTitleBounds(const views::View* icon,
- const views::View* caption_button_container,
+ // Returns the bounds for the header's title given the views to the left and
+ // right of the title, and the font used.
+ // |left_view| should be NULL if there is no view to the left of the title.
+ static gfx::Rect GetTitleBounds(const views::View* left_view,
+ const views::View* right_view,
const gfx::FontList& title_font_list);
// Returns true if the header for |widget| can animate to new visuals when the
« no previous file with comments | « ash/frame/header_painter.h ('k') | ash/frame/header_painter_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698