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

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

Issue 1748903003: Resets hover state when ToolbarActionView is dragged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resets hover state when ToolbarActionView is dragged (added a test) Created 4 years, 10 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 | « chrome/browser/ui/views/toolbar/toolbar_action_view_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 2d5b68e42837afab1a6a0c7093793b5049fe572c..31548860da7c89b26c3547e1cf803847a7c881be 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -596,6 +596,9 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
}
const View* dragged_view() const { return dragged_view_; }
+ // Unit tests may temporarily set |dragged_view| to simulate a drag.
+ void set_dragged_view(View* dragged_view) { dragged_view_ = dragged_view; }
sky 2016/03/01 03:58:48 Exposing api like this, especially when it doesn't
varkha 2016/03/01 04:03:34 I've tried that (making it private and making Tool
varkha 2016/03/01 04:58:53 Done. Just needed to mention that the friend test
+
// Adds the specified |rect| in client area coordinates to the rectangle to be
// redrawn.
virtual void SchedulePaintInRect(const gfx::Rect& rect);
« no previous file with comments | « chrome/browser/ui/views/toolbar/toolbar_action_view_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698