| 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_COMMON_SHELF_APP_LIST_BUTTON_H_ | 5 #ifndef ASH_COMMON_SHELF_APP_LIST_BUTTON_H_ |
| 6 #define ASH_COMMON_SHELF_APP_LIST_BUTTON_H_ | 6 #define ASH_COMMON_SHELF_APP_LIST_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/views/controls/button/image_button.h" | 10 #include "ui/views/controls/button/image_button.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // Sets alpha value of the background and schedules a paint. | 30 // Sets alpha value of the background and schedules a paint. |
| 31 void SetBackgroundAlpha(int alpha); | 31 void SetBackgroundAlpha(int alpha); |
| 32 | 32 |
| 33 protected: | 33 protected: |
| 34 // views::ImageButton overrides: | 34 // views::ImageButton overrides: |
| 35 bool OnMousePressed(const ui::MouseEvent& event) override; | 35 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 36 void OnMouseReleased(const ui::MouseEvent& event) override; | 36 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 37 void OnMouseCaptureLost() override; | 37 void OnMouseCaptureLost() override; |
| 38 bool OnMouseDragged(const ui::MouseEvent& event) override; | 38 bool OnMouseDragged(const ui::MouseEvent& event) override; |
| 39 void OnPaint(gfx::Canvas* canvas) override; | 39 void OnPaint(gfx::Canvas* canvas) override; |
| 40 void GetAccessibleState(ui::AXViewState* state) override; | 40 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 41 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; | 41 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; |
| 42 void NotifyClick(const ui::Event& event) override; | 42 void NotifyClick(const ui::Event& event) override; |
| 43 bool ShouldEnterPushedState(const ui::Event& event) override; | 43 bool ShouldEnterPushedState(const ui::Event& event) override; |
| 44 bool ShouldShowInkDropHighlight() const override; | 44 bool ShouldShowInkDropHighlight() const override; |
| 45 | 45 |
| 46 // ui::EventHandler overrides: | 46 // ui::EventHandler overrides: |
| 47 void OnGestureEvent(ui::GestureEvent* event) override; | 47 void OnGestureEvent(ui::GestureEvent* event) override; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 // Toggles the active state for painting the background and schedules a paint. | 50 // Toggles the active state for painting the background and schedules a paint. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 70 InkDropButtonListener* listener_; | 70 InkDropButtonListener* listener_; |
| 71 ShelfView* shelf_view_; | 71 ShelfView* shelf_view_; |
| 72 WmShelf* wm_shelf_; | 72 WmShelf* wm_shelf_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(AppListButton); | 74 DISALLOW_COPY_AND_ASSIGN(AppListButton); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace ash | 77 } // namespace ash |
| 78 | 78 |
| 79 #endif // ASH_COMMON_SHELF_APP_LIST_BUTTON_H_ | 79 #endif // ASH_COMMON_SHELF_APP_LIST_BUTTON_H_ |
| OLD | NEW |