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

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

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix round-down problems Created 7 years, 2 months 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 20 matching lines...) Expand all
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 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 static void TrimTooltipToFit(int max_width, 41 static void TrimTooltipToFit(float max_width,
42 string16* text, 42 string16* text,
43 int* width, 43 float* width,
44 int* line_count); 44 int* line_count);
45 45
46 private: 46 private:
47 TooltipController* controller_; 47 TooltipController* controller_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(TooltipControllerTestHelper); 49 DISALLOW_COPY_AND_ASSIGN(TooltipControllerTestHelper);
50 }; 50 };
51 51
52 // Trivial View subclass that lets you set the tooltip text. 52 // Trivial View subclass that lets you set the tooltip text.
53 class TooltipTestView : public views::View { 53 class TooltipTestView : public views::View {
(...skipping 12 matching lines...) Expand all
66 66
67 DISALLOW_COPY_AND_ASSIGN(TooltipTestView); 67 DISALLOW_COPY_AND_ASSIGN(TooltipTestView);
68 }; 68 };
69 69
70 70
71 } // namespace test 71 } // namespace test
72 } // namespace corewm 72 } // namespace corewm
73 } // namespace views 73 } // namespace views
74 74
75 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ 75 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698