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

Unified Diff: ui/views/corewm/tooltip_win.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/views/corewm/tooltip_controller_unittest.cc ('k') | ui/views/corewm/tooltip_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/tooltip_win.h
diff --git a/ui/views/corewm/tooltip_win.h b/ui/views/corewm/tooltip_win.h
deleted file mode 100644
index 23ee6401bdc2b1d759ac96561facb389cb1e0f18..0000000000000000000000000000000000000000
--- a/ui/views/corewm/tooltip_win.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2013 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_VIEWS_COREWM_TOOLTIP_WIN_H_
-#define UI_VIEWS_COREWM_TOOLTIP_WIN_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/strings/string16.h"
-#include "ui/gfx/point.h"
-#include "ui/views/corewm/tooltip.h"
-
-#include <windows.h>
-#include <commctrl.h>
-
-namespace views {
-namespace corewm {
-
-// Implementation of Tooltip that uses the native win32 control for showing the
-// tooltip.
-class VIEWS_EXPORT TooltipWin : public Tooltip {
- public:
- explicit TooltipWin(HWND parent);
- virtual ~TooltipWin();
-
- // HandleNotify() is forwarded from DesktopWindowTreeHostWin to keep the
- // native tooltip in sync.
- bool HandleNotify(int w_param, NMHDR* l_param, LRESULT* l_result);
-
- private:
- // Ensures |tooltip_hwnd_| is valid. Returns true if valid, false if there
- // a problem creating |tooltip_hwnd_|.
- bool EnsureTooltipWindow();
-
- // Sets the position of the tooltip.
- void PositionTooltip();
-
- // Tooltip:
- virtual void SetText(aura::Window* window,
- const base::string16& tooltip_text,
- const gfx::Point& location) override;
- virtual void Show() override;
- virtual void Hide() override;
- virtual bool IsVisible() override;
-
- // The window |tooltip_hwnd_| is parented to.
- HWND parent_hwnd_;
-
- // Shows the tooltip.
- HWND tooltip_hwnd_;
-
- // Used to modify the tooltip.
- TOOLINFO toolinfo_;
-
- // Is the tooltip showing?
- bool showing_;
-
- // Location to show the tooltip at. In order to position the tooltip we need
- // to know the size. The size is only available from TTN_SHOW, so we have to
- // cache it.
- gfx::Point location_;
-
- DISALLOW_COPY_AND_ASSIGN(TooltipWin);
-};
-
-} // namespace corewm
-} // namespace views
-
-#endif // UI_VIEWS_COREWM_TOOLTIP_WIN_H_
« no previous file with comments | « ui/views/corewm/tooltip_controller_unittest.cc ('k') | ui/views/corewm/tooltip_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698