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

Unified Diff: ui/wm/public/tooltip_client.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/wm/public/scoped_tooltip_disabler.cc ('k') | ui/wm/public/tooltip_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/public/tooltip_client.h
diff --git a/ui/wm/public/tooltip_client.h b/ui/wm/public/tooltip_client.h
deleted file mode 100644
index f2b97cdd0f4e70acccdaf8065503ae746dafec46..0000000000000000000000000000000000000000
--- a/ui/wm/public/tooltip_client.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_WM_PUBLIC_TOOLTIP_CLIENT_H_
-#define UI_WM_PUBLIC_TOOLTIP_CLIENT_H_
-
-#include "ui/aura/aura_export.h"
-#include "ui/gfx/font.h"
-
-namespace aura {
-class Window;
-namespace client {
-
-class ScopedTooltipDisabler;
-
-class AURA_EXPORT TooltipClient {
- public:
- // Informs the shell tooltip manager of change in tooltip for window |target|.
- virtual void UpdateTooltip(Window* target) = 0;
-
- // Sets the time after which the tooltip is hidden for Window |target|. If
- // |timeout_in_ms| is <= 0, the tooltip is shown indefinitely.
- virtual void SetTooltipShownTimeout(Window* target, int timeout_in_ms) = 0;
-
- protected:
- // Enables/Disables tooltips. This is treated as a reference count. Consumers
- // must use ScopedTooltipDisabler to enable/disabled tooltips.
- virtual void SetTooltipsEnabled(bool enable) = 0;
-
- private:
- friend class ScopedTooltipDisabler;
-};
-
-AURA_EXPORT void SetTooltipClient(Window* root_window,
- TooltipClient* client);
-AURA_EXPORT TooltipClient* GetTooltipClient(Window* root_window);
-
-// Sets the text for the tooltip. The id is used to determine uniqueness when
-// the text does not change. For example, if the tooltip text does not change,
-// but the id does then the position of the tooltip is updated.
-AURA_EXPORT void SetTooltipText(Window* window,
- base::string16* tooltip_text);
-AURA_EXPORT void SetTooltipId(Window* window, void* id);
-AURA_EXPORT const base::string16 GetTooltipText(Window* window);
-AURA_EXPORT const void* GetTooltipId(Window* window);
-
-} // namespace client
-} // namespace aura
-
-#endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_
« no previous file with comments | « ui/wm/public/scoped_tooltip_disabler.cc ('k') | ui/wm/public/tooltip_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698