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_SHELF_APP_LIST_BUTTON_H_ | 5 #ifndef ASH_SHELF_APP_LIST_BUTTON_H_ |
6 #define ASH_SHELF_APP_LIST_BUTTON_H_ | 6 #define ASH_SHELF_APP_LIST_BUTTON_H_ |
7 | 7 |
8 #include "ui/views/controls/button/image_button.h" | 8 #include "ui/views/controls/button/image_button.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 42 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
43 | 43 |
44 private: | 44 private: |
45 // Toggles the active state for painting the background and schedules a paint. | 45 // Toggles the active state for painting the background and schedules a paint. |
46 void SetDrawBackgroundAsActive(bool draw_background_as_active); | 46 void SetDrawBackgroundAsActive(bool draw_background_as_active); |
47 | 47 |
48 // True if the background should render as active, regardless of the state of | 48 // True if the background should render as active, regardless of the state of |
49 // the application list. | 49 // the application list. |
50 bool draw_background_as_active_; | 50 bool draw_background_as_active_; |
51 | 51 |
52 // True if touch view feedback command line flag has been enabled. When | |
53 // enabled touch gestures will toggle rendering the background as active. | |
54 bool touch_feedback_enabled_; | |
55 | |
56 ShelfButtonHost* host_; | 52 ShelfButtonHost* host_; |
57 // Reference to the shelf widget containing this button, owned by the | 53 // Reference to the shelf widget containing this button, owned by the |
58 // root window controller. | 54 // root window controller. |
59 ShelfWidget* shelf_widget_; | 55 ShelfWidget* shelf_widget_; |
60 | 56 |
61 DISALLOW_COPY_AND_ASSIGN(AppListButton); | 57 DISALLOW_COPY_AND_ASSIGN(AppListButton); |
62 }; | 58 }; |
63 | 59 |
64 } // namespace ash | 60 } // namespace ash |
65 | 61 |
66 #endif // ASH_SHELF_APP_LIST_BUTTON_H_ | 62 #endif // ASH_SHELF_APP_LIST_BUTTON_H_ |
OLD | NEW |