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

Unified Diff: ui/views/corewm/tooltip_aura.h

Issue 2556083002: Don't subtract border from max size for display rect. (Closed)
Patch Set: update test Created 4 years 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/test/tooltip_aura_test_api.cc ('k') | ui/views/corewm/tooltip_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/tooltip_aura.h
diff --git a/ui/views/corewm/tooltip_aura.h b/ui/views/corewm/tooltip_aura.h
index 84f8f672348ef6320672b38529b9ca88c427d776..4540c3638abbb319ac70a773a1ab03e8544f0f5c 100644
--- a/ui/views/corewm/tooltip_aura.h
+++ b/ui/views/corewm/tooltip_aura.h
@@ -12,6 +12,7 @@
#include "ui/views/widget/widget_observer.h"
namespace gfx {
+class RenderText;
class Size;
} // namespace gfx
@@ -20,6 +21,9 @@ namespace views {
class Widget;
namespace corewm {
+namespace test {
+class TooltipAuraTestApi;
+}
// Implementation of Tooltip that shows the tooltip using a Widget and Label.
class VIEWS_EXPORT TooltipAura : public Tooltip, public WidgetObserver {
@@ -30,6 +34,9 @@ class VIEWS_EXPORT TooltipAura : public Tooltip, public WidgetObserver {
private:
class TooltipView;
+ friend class test::TooltipAuraTestApi;
+ gfx::RenderText* GetRenderTextForTest();
+
// Adjusts the bounds given by the arguments to fit inside the desktop
// and applies the adjusted bounds to the label_.
void SetTooltipBounds(const gfx::Point& mouse_pos,
« no previous file with comments | « ui/views/corewm/test/tooltip_aura_test_api.cc ('k') | ui/views/corewm/tooltip_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698