OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELF_SHELF_BUTTON_H_ | 5 #ifndef ASH_SHELF_SHELF_BUTTON_H_ |
6 #define ASH_SHELF_SHELF_BUTTON_H_ | 6 #define ASH_SHELF_SHELF_BUTTON_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 #include "ui/gfx/shadow_value.h" | 10 #include "ui/gfx/shadow_value.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 | 104 |
105 gfx::ShadowValues icon_shadows_; | 105 gfx::ShadowValues icon_shadows_; |
106 | 106 |
107 // If non-null the destuctor sets this to true. This is set while the menu is | 107 // If non-null the destuctor sets this to true. This is set while the menu is |
108 // showing and used to detect if the menu was deleted while running. | 108 // showing and used to detect if the menu was deleted while running. |
109 bool* destroyed_flag_; | 109 bool* destroyed_flag_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(ShelfButton); | 111 DISALLOW_COPY_AND_ASSIGN(ShelfButton); |
112 }; | 112 }; |
113 | 113 |
114 // Paints an activity indicator on |canvas| whose |size| is specified in DIP. | |
115 void PaintIndicatorOnCanvas(gfx::Canvas* canvas, const gfx::Size& size); | |
varkha
2016/05/13 23:01:24
Could it be in anonymous namespace and not exposed
| |
116 | |
114 } // namespace ash | 117 } // namespace ash |
115 | 118 |
116 #endif // ASH_SHELF_SHELF_BUTTON_H_ | 119 #endif // ASH_SHELF_SHELF_BUTTON_H_ |
OLD | NEW |