| 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 ASH_TOOLTIPS_TOOLTIP_CONTROLLER_H_ | 5 #ifndef ASH_TOOLTIPS_TOOLTIP_CONTROLLER_H_ |
| 6 #define ASH_TOOLTIPS_TOOLTIP_CONTROLLER_H_ | 6 #define ASH_TOOLTIPS_TOOLTIP_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Overridden from aura::client::TooltipClient. | 41 // Overridden from aura::client::TooltipClient. |
| 42 virtual void UpdateTooltip(aura::Window* target) OVERRIDE; | 42 virtual void UpdateTooltip(aura::Window* target) OVERRIDE; |
| 43 | 43 |
| 44 // Overridden from aura::EventFilter. | 44 // Overridden from aura::EventFilter. |
| 45 virtual bool PreHandleKeyEvent(aura::Window* target, | 45 virtual bool PreHandleKeyEvent(aura::Window* target, |
| 46 aura::KeyEvent* event) OVERRIDE; | 46 aura::KeyEvent* event) OVERRIDE; |
| 47 virtual bool PreHandleMouseEvent(aura::Window* target, | 47 virtual bool PreHandleMouseEvent(aura::Window* target, |
| 48 aura::MouseEvent* event) OVERRIDE; | 48 aura::MouseEvent* event) OVERRIDE; |
| 49 virtual ui::TouchStatus PreHandleTouchEvent(aura::Window* target, | 49 virtual ui::TouchStatus PreHandleTouchEvent(aura::Window* target, |
| 50 aura::TouchEvent* event) OVERRIDE; | 50 aura::TouchEvent* event) OVERRIDE; |
| 51 virtual ui::GestureStatus PreHandleGestureEvent(aura::Window* target, |
| 52 aura::GestureEvent* event) OVERRIDE; |
| 51 | 53 |
| 52 // Overridden from aura::WindowObserver. | 54 // Overridden from aura::WindowObserver. |
| 53 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; | 55 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; |
| 54 | 56 |
| 55 private: | 57 private: |
| 56 friend class ash::test::TooltipControllerTest; | 58 friend class ash::test::TooltipControllerTest; |
| 57 | 59 |
| 58 class Tooltip; | 60 class Tooltip; |
| 59 | 61 |
| 60 void TooltipTimerFired(); | 62 void TooltipTimerFired(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 71 | 73 |
| 72 gfx::Point curr_mouse_loc_; | 74 gfx::Point curr_mouse_loc_; |
| 73 | 75 |
| 74 DISALLOW_COPY_AND_ASSIGN(TooltipController); | 76 DISALLOW_COPY_AND_ASSIGN(TooltipController); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 } // namespace internal | 79 } // namespace internal |
| 78 } // namespace ash | 80 } // namespace ash |
| 79 | 81 |
| 80 #endif // ASH_TOOLTIPS_TOOLTIP_CONTROLLER_H_ | 82 #endif // ASH_TOOLTIPS_TOOLTIP_CONTROLLER_H_ |
| OLD | NEW |