OLD | NEW |
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_SYSTEM_USER_BUTTON_FROM_VIEW_H_ | 5 #ifndef ASH_SYSTEM_USER_BUTTON_FROM_VIEW_H_ |
6 #define ASH_SYSTEM_USER_BUTTON_FROM_VIEW_H_ | 6 #define ASH_SYSTEM_USER_BUTTON_FROM_VIEW_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/gfx/insets.h" | 9 #include "ui/gfx/geometry/insets.h" |
10 #include "ui/views/controls/button/custom_button.h" | 10 #include "ui/views/controls/button/custom_button.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 namespace tray { | 13 namespace tray { |
14 | 14 |
15 // This view is used to wrap it's content and transform it into button. | 15 // This view is used to wrap it's content and transform it into button. |
16 class ButtonFromView : public views::CustomButton { | 16 class ButtonFromView : public views::CustomButton { |
17 public: | 17 public: |
18 // The |content| is the content which is shown within the button. The | 18 // The |content| is the content which is shown within the button. The |
19 // |button_listener| will be informed - if provided - when a button was | 19 // |button_listener| will be informed - if provided - when a button was |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // The insets which get used for the drawn accessibility (tab) frame. | 59 // The insets which get used for the drawn accessibility (tab) frame. |
60 gfx::Insets tab_frame_inset_; | 60 gfx::Insets tab_frame_inset_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(ButtonFromView); | 62 DISALLOW_COPY_AND_ASSIGN(ButtonFromView); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace tray | 65 } // namespace tray |
66 } // namespace ash | 66 } // namespace ash |
67 | 67 |
68 #endif // ASH_SYSTEM_USER_BUTTON_FROM_VIEW_H_ | 68 #endif // ASH_SYSTEM_USER_BUTTON_FROM_VIEW_H_ |
OLD | NEW |