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

Unified Diff: ash/common/frame/header_painter_util.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/frame/header_painter.h ('k') | ash/common/frame/header_painter_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/frame/header_painter_util.h
diff --git a/ash/common/frame/header_painter_util.h b/ash/common/frame/header_painter_util.h
deleted file mode 100644
index 71c42adbfae5e82f0a275b2bda9ae4af79964032..0000000000000000000000000000000000000000
--- a/ash/common/frame/header_painter_util.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_FRAME_HEADER_PAINTER_UTIL_H_
-#define ASH_COMMON_FRAME_HEADER_PAINTER_UTIL_H_
-
-#include "ash/ash_export.h"
-#include "base/macros.h"
-
-namespace gfx {
-class FontList;
-class Rect;
-}
-namespace views {
-class View;
-class Widget;
-}
-
-namespace ash {
-
-// Static-only helper class for functionality used accross multiple
-// implementations of HeaderPainter.
-class ASH_EXPORT HeaderPainterUtil {
- public:
- // Returns the radius of the header's corners when the window is restored.
- static int GetTopCornerRadiusWhenRestored();
-
- // Returns the default distance between the left edge of the window and the
- // leftmost view in the header.
- static int GetLeftViewXInset();
-
- // 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 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
- // widget's activation changes. Returns false if the header should switch to
- // new visuals instantaneously.
- static bool CanAnimateActivation(views::Widget* widget);
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(HeaderPainterUtil);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_FRAME_HEADER_PAINTER_UTIL_H_
« no previous file with comments | « ash/common/frame/header_painter.h ('k') | ash/common/frame/header_painter_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698