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

Side by Side Diff: ui/wm/public/tooltip_client.h

Issue 213833018: Aura tooltips do not move on mouse move in case of many neighboring views with the same label (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not set unique id along with tooltip text Created 6 years, 6 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
« no previous file with comments | « ui/views/widget/tooltip_manager_aura.cc ('k') | ui/wm/public/tooltip_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ 5 #ifndef UI_WM_PUBLIC_TOOLTIP_CLIENT_H_
6 #define UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ 6 #define UI_WM_PUBLIC_TOOLTIP_CLIENT_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 #include "ui/gfx/font.h" 9 #include "ui/gfx/font.h"
10 10
(...skipping 18 matching lines...) Expand all
29 virtual void SetTooltipsEnabled(bool enable) = 0; 29 virtual void SetTooltipsEnabled(bool enable) = 0;
30 30
31 private: 31 private:
32 friend class ScopedTooltipDisabler; 32 friend class ScopedTooltipDisabler;
33 }; 33 };
34 34
35 AURA_EXPORT void SetTooltipClient(Window* root_window, 35 AURA_EXPORT void SetTooltipClient(Window* root_window,
36 TooltipClient* client); 36 TooltipClient* client);
37 AURA_EXPORT TooltipClient* GetTooltipClient(Window* root_window); 37 AURA_EXPORT TooltipClient* GetTooltipClient(Window* root_window);
38 38
39 AURA_EXPORT void SetTooltipText(Window* window, base::string16* tooltip_text); 39 // Sets the text for the tooltip. The id is used to determine uniqueness when
40 // the text does not change. For example, if the tooltip text does not change,
41 // but the id does then the position of the tooltip is updated.
42 AURA_EXPORT void SetTooltipText(Window* window,
43 base::string16* tooltip_text);
44 AURA_EXPORT void UpdateTooltipId(Window* window, void* id);
sky 2014/06/04 15:32:53 UpdateTooltipId->SetTooltipId
40 AURA_EXPORT const base::string16 GetTooltipText(Window* window); 45 AURA_EXPORT const base::string16 GetTooltipText(Window* window);
46 AURA_EXPORT const void* GetTooltipId(Window* window);
41 47
42 } // namespace client 48 } // namespace client
43 } // namespace aura 49 } // namespace aura
44 50
45 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ 51 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/views/widget/tooltip_manager_aura.cc ('k') | ui/wm/public/tooltip_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698