| 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_COMMON_SHELF_SHELF_BUTTON_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_BUTTON_H_ |
| 6 #define ASH_COMMON_SHELF_SHELF_BUTTON_H_ | 6 #define ASH_COMMON_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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 // View override - needed by unit test. | 65 // View override - needed by unit test. |
| 66 void OnMouseCaptureLost() override; | 66 void OnMouseCaptureLost() override; |
| 67 | 67 |
| 68 protected: | 68 protected: |
| 69 // View overrides: | 69 // View overrides: |
| 70 const char* GetClassName() const override; | 70 const char* GetClassName() const override; |
| 71 bool OnMousePressed(const ui::MouseEvent& event) override; | 71 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 72 void OnMouseReleased(const ui::MouseEvent& event) override; | 72 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 73 bool OnMouseDragged(const ui::MouseEvent& event) override; | 73 bool OnMouseDragged(const ui::MouseEvent& event) override; |
| 74 void GetAccessibleState(ui::AXViewState* state) override; | 74 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 75 void Layout() override; | 75 void Layout() override; |
| 76 void ChildPreferredSizeChanged(views::View* child) override; | 76 void ChildPreferredSizeChanged(views::View* child) override; |
| 77 void OnFocus() override; | 77 void OnFocus() override; |
| 78 void OnBlur() override; | 78 void OnBlur() override; |
| 79 void OnPaint(gfx::Canvas* canvas) override; | 79 void OnPaint(gfx::Canvas* canvas) override; |
| 80 | 80 |
| 81 // ui::EventHandler overrides: | 81 // ui::EventHandler overrides: |
| 82 void OnGestureEvent(ui::GestureEvent* event) override; | 82 void OnGestureEvent(ui::GestureEvent* event) override; |
| 83 | 83 |
| 84 // views::CustomButton overrides: | 84 // views::CustomButton overrides: |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // If non-null the destuctor sets this to true. This is set while the menu is | 119 // If non-null the destuctor sets this to true. This is set while the menu is |
| 120 // showing and used to detect if the menu was deleted while running. | 120 // showing and used to detect if the menu was deleted while running. |
| 121 bool* destroyed_flag_; | 121 bool* destroyed_flag_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(ShelfButton); | 123 DISALLOW_COPY_AND_ASSIGN(ShelfButton); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace ash | 126 } // namespace ash |
| 127 | 127 |
| 128 #endif // ASH_COMMON_SHELF_SHELF_BUTTON_H_ | 128 #endif // ASH_COMMON_SHELF_SHELF_BUTTON_H_ |
| OLD | NEW |