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

Unified Diff: ui/views/widget/tooltip_manager_win.h

Issue 25478006: Nukes some dead TooltipManager code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nuke field Created 7 years, 3 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
Index: ui/views/widget/tooltip_manager_win.h
diff --git a/ui/views/widget/tooltip_manager_win.h b/ui/views/widget/tooltip_manager_win.h
index cfb12256a7fda39d69cfd2a63e91b5ab5852fa2b..9af03a4447e2f9022f4a6de7577cb966b2fca8a3 100644
--- a/ui/views/widget/tooltip_manager_win.h
+++ b/ui/views/widget/tooltip_manager_win.h
@@ -11,7 +11,6 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/point.h"
@@ -73,12 +72,6 @@ class TooltipManagerWin : public TooltipManager {
// Invoked when the tooltip text changes for the specified views.
virtual void TooltipTextChanged(View* view) OVERRIDE;
- // Invoked when toolbar icon gets focus.
- virtual void ShowKeyboardTooltip(View* view) OVERRIDE;
-
- // Invoked when toolbar loses focus.
- virtual void HideKeyboardTooltip() OVERRIDE;
-
// Message handlers. These forward to the tooltip control.
virtual void OnMouse(UINT u_msg, WPARAM w_param, LPARAM l_param);
LRESULT OnNotify(int w_param, NMHDR* l_param, bool* handled);
@@ -111,9 +104,6 @@ class TooltipManagerWin : public TooltipManager {
// positive value.
int CalcTooltipHeight();
- // Invoked when the timer elapses and tooltip has to be destroyed.
- void DestroyKeyboardTooltipWindow(HWND window_to_destroy);
-
// Hosting Widget.
Widget* widget_;
@@ -138,13 +128,6 @@ class TooltipManagerWin : public TooltipManager {
// Width of the last tooltip.
int tooltip_width_;
- // control window for tooltip displayed using keyboard.
- HWND keyboard_tooltip_hwnd_;
-
- // Used to register DestroyTooltipWindow function with PostDelayedTask
- // function.
- base::WeakPtrFactory<TooltipManagerWin> keyboard_tooltip_factory_;
-
DISALLOW_COPY_AND_ASSIGN(TooltipManagerWin);
};

Powered by Google App Engine
This is Rietveld 408576698