| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ | 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ |
| 6 #define UI_VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ | 6 #define UI_VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/base/animation/animation_delegate.h" | 9 #include "ui/base/animation/animation_delegate.h" |
| 10 #include "ui/base/events/event_constants.h" | 10 #include "ui/base/events/event_constants.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual std::string GetClassName() const OVERRIDE; | 83 virtual std::string GetClassName() const OVERRIDE; |
| 84 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 84 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 85 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 85 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
| 86 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 86 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 87 virtual void OnMouseCaptureLost() OVERRIDE; | 87 virtual void OnMouseCaptureLost() OVERRIDE; |
| 88 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 88 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
| 89 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 89 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| 90 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 90 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
| 91 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 91 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 92 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; | 92 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; |
| 93 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 93 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 94 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 94 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 95 virtual void ShowContextMenu(const gfx::Point& p, | 95 virtual void ShowContextMenu(const gfx::Point& p, |
| 96 bool is_mouse_gesture) OVERRIDE; | 96 bool is_mouse_gesture) OVERRIDE; |
| 97 virtual void OnDragDone() OVERRIDE; | 97 virtual void OnDragDone() OVERRIDE; |
| 98 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 98 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 99 | 99 |
| 100 // Overridden from ui::AnimationDelegate: | 100 // Overridden from ui::AnimationDelegate: |
| 101 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 101 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
| 102 | 102 |
| 103 // Takes ownership of the delegate. | 103 // Takes ownership of the delegate. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 protected: | 163 protected: |
| 164 CustomButtonStateChangedDelegate() {} | 164 CustomButtonStateChangedDelegate() {} |
| 165 | 165 |
| 166 private: | 166 private: |
| 167 DISALLOW_COPY_AND_ASSIGN(CustomButtonStateChangedDelegate); | 167 DISALLOW_COPY_AND_ASSIGN(CustomButtonStateChangedDelegate); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 } // namespace views | 170 } // namespace views |
| 171 | 171 |
| 172 #endif // UI_VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ | 172 #endif // UI_VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ |
| OLD | NEW |