Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Side by Side Diff: ui/views/corewm/tooltip_controller_test_helper.h

Issue 117983002: Prefix string16 with base:: in ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 string16 GetTooltipText(); 34 base::string16 GetTooltipText();
35 aura::Window* GetTooltipWindow(); 35 aura::Window* GetTooltipWindow();
36 void FireTooltipTimer(); 36 void FireTooltipTimer();
37 bool IsTooltipTimerRunning(); 37 bool IsTooltipTimerRunning();
38 void FireTooltipShownTimer(); 38 void FireTooltipShownTimer();
39 bool IsTooltipShownTimerRunning(); 39 bool IsTooltipShownTimerRunning();
40 bool IsTooltipVisible(); 40 bool IsTooltipVisible();
41 41
42 private: 42 private:
43 TooltipController* controller_; 43 TooltipController* controller_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(TooltipControllerTestHelper); 45 DISALLOW_COPY_AND_ASSIGN(TooltipControllerTestHelper);
46 }; 46 };
47 47
48 // Trivial View subclass that lets you set the tooltip text. 48 // Trivial View subclass that lets you set the tooltip text.
49 class TooltipTestView : public views::View { 49 class TooltipTestView : public views::View {
50 public: 50 public:
51 TooltipTestView(); 51 TooltipTestView();
52 virtual ~TooltipTestView(); 52 virtual ~TooltipTestView();
53 53
54 void set_tooltip_text(string16 tooltip_text) { tooltip_text_ = tooltip_text; } 54 void set_tooltip_text(base::string16 tooltip_text) {
55 tooltip_text_ = tooltip_text;
56 }
55 57
56 // Overridden from views::View 58 // Overridden from views::View
57 virtual bool GetTooltipText(const gfx::Point& p, 59 virtual bool GetTooltipText(const gfx::Point& p,
58 string16* tooltip) const OVERRIDE; 60 base::string16* tooltip) const OVERRIDE;
59 61
60 private: 62 private:
61 string16 tooltip_text_; 63 base::string16 tooltip_text_;
62 64
63 DISALLOW_COPY_AND_ASSIGN(TooltipTestView); 65 DISALLOW_COPY_AND_ASSIGN(TooltipTestView);
64 }; 66 };
65 67
66 68
67 } // namespace test 69 } // namespace test
68 } // namespace corewm 70 } // namespace corewm
69 } // namespace views 71 } // namespace views
70 72
71 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ 73 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « ui/views/corewm/tooltip_controller.cc ('k') | ui/views/corewm/tooltip_controller_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698