| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MASH_WM_FRAME_HEADER_PAINTER_UTIL_H_ | 5 #ifndef ASH_MUS_FRAME_HEADER_PAINTER_UTIL_H_ |
| 6 #define MASH_WM_FRAME_HEADER_PAINTER_UTIL_H_ | 6 #define ASH_MUS_FRAME_HEADER_PAINTER_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class FontList; | 11 class FontList; |
| 12 class Rect; | 12 class Rect; |
| 13 } | 13 } |
| 14 namespace views { | 14 namespace views { |
| 15 class View; | 15 class View; |
| 16 class Widget; | 16 class Widget; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace mash { | 19 namespace ash { |
| 20 namespace wm { | 20 namespace mus { |
| 21 | 21 |
| 22 // Static-only helper class for functionality used accross multiple | 22 // Static-only helper class for functionality used accross multiple |
| 23 // implementations of HeaderPainter. | 23 // implementations of HeaderPainter. |
| 24 class HeaderPainterUtil { | 24 class 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 default distance between the left edge of the window and the | 29 // Returns the default distance between the left edge of the window and the |
| 30 // leftmost view in the header. | 30 // leftmost view in the header. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 43 | 43 |
| 44 // Returns true if the header for |widget| can animate to new visuals when the | 44 // Returns true if the header for |widget| can animate to new visuals when the |
| 45 // widget's activation changes. Returns false if the header should switch to | 45 // widget's activation changes. Returns false if the header should switch to |
| 46 // new visuals instantaneously. | 46 // new visuals instantaneously. |
| 47 static bool CanAnimateActivation(views::Widget* widget); | 47 static bool CanAnimateActivation(views::Widget* widget); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 DISALLOW_IMPLICIT_CONSTRUCTORS(HeaderPainterUtil); | 50 DISALLOW_IMPLICIT_CONSTRUCTORS(HeaderPainterUtil); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace wm | 53 } // namespace mus |
| 54 } // namespace mash | 54 } // namespace ash |
| 55 | 55 |
| 56 #endif // MASH_WM_FRAME_HEADER_PAINTER_UTIL_H_ | 56 #endif // ASH_MUS_FRAME_HEADER_PAINTER_UTIL_H_ |
| OLD | NEW |