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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 public: | 50 public: |
51 TooltipTestView(); | 51 TooltipTestView(); |
52 virtual ~TooltipTestView(); | 52 virtual ~TooltipTestView(); |
53 | 53 |
54 void set_tooltip_text(base::string16 tooltip_text) { | 54 void set_tooltip_text(base::string16 tooltip_text) { |
55 tooltip_text_ = tooltip_text; | 55 tooltip_text_ = tooltip_text; |
56 } | 56 } |
57 | 57 |
58 // Overridden from views::View | 58 // Overridden from views::View |
59 virtual bool GetTooltipText(const gfx::Point& p, | 59 virtual bool GetTooltipText(const gfx::Point& p, |
60 base::string16* tooltip) const OVERRIDE; | 60 base::string16* tooltip) const override; |
61 | 61 |
62 private: | 62 private: |
63 base::string16 tooltip_text_; | 63 base::string16 tooltip_text_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(TooltipTestView); | 65 DISALLOW_COPY_AND_ASSIGN(TooltipTestView); |
66 }; | 66 }; |
67 | 67 |
68 | 68 |
69 } // namespace test | 69 } // namespace test |
70 } // namespace corewm | 70 } // namespace corewm |
71 } // namespace views | 71 } // namespace views |
72 | 72 |
73 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ | 73 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ |
OLD | NEW |