OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ | 5 #ifndef UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ |
6 #define UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ | 6 #define UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // TooltipControllerTestHelper provides access to TooltipControllers private | 24 // TooltipControllerTestHelper provides access to TooltipControllers private |
25 // state. | 25 // state. |
26 class TooltipControllerTestHelper { | 26 class TooltipControllerTestHelper { |
27 public: | 27 public: |
28 explicit TooltipControllerTestHelper(TooltipController* controller); | 28 explicit TooltipControllerTestHelper(TooltipController* controller); |
29 ~TooltipControllerTestHelper(); | 29 ~TooltipControllerTestHelper(); |
30 | 30 |
31 TooltipController* controller() { return controller_; } | 31 TooltipController* controller() { return controller_; } |
32 | 32 |
33 // These are mostly cover methods for TooltipController private methods. | 33 // These are mostly cover methods for TooltipController private methods. |
| 34 gfx::Point GetTooltipPosition(); |
34 base::string16 GetTooltipText(); | 35 base::string16 GetTooltipText(); |
35 aura::Window* GetTooltipWindow(); | 36 aura::Window* GetTooltipWindow(); |
36 void FireTooltipTimer(); | 37 void FireTooltipTimer(); |
37 bool IsTooltipTimerRunning(); | 38 bool IsTooltipTimerRunning(); |
38 void FireTooltipShownTimer(); | 39 void FireTooltipShownTimer(); |
39 bool IsTooltipShownTimerRunning(); | 40 bool IsTooltipShownTimerRunning(); |
40 bool IsTooltipVisible(); | 41 bool IsTooltipVisible(); |
41 | 42 |
42 private: | 43 private: |
43 TooltipController* controller_; | 44 TooltipController* controller_; |
(...skipping 20 matching lines...) Expand all Loading... |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(TooltipTestView); | 66 DISALLOW_COPY_AND_ASSIGN(TooltipTestView); |
66 }; | 67 }; |
67 | 68 |
68 | 69 |
69 } // namespace test | 70 } // namespace test |
70 } // namespace corewm | 71 } // namespace corewm |
71 } // namespace views | 72 } // namespace views |
72 | 73 |
73 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ | 74 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ |
OLD | NEW |