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

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 (hide set_dragged_view) 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
Index: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 2d5b68e42837afab1a6a0c7093793b5049fe572c..27fc28ad507a97e1a131915c82180526756f67c6 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -37,6 +37,8 @@
#endif
#endif
+class ToolbarActionViewUnitTest;
+
namespace base {
class TimeDelta;
}
@@ -841,6 +843,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
private:
friend class ComboboxTest;
friend class TextfieldTest;
+ friend class ::ToolbarActionViewUnitTest;
+
+ // Temporarily sets |dragged_view| to simulate a drag. For use in unit tests.
+ void set_dragged_view(View* dragged_view) { dragged_view_ = dragged_view; }
sky 2016/03/01 17:24:48 Now that you friended the class you no longer need
varkha 2016/03/01 18:00:05 Done.
// Sets the value of |disable_inactive_rendering_|. If the value changes,
// both the NonClientView and WidgetDelegate are notified.

Powered by Google App Engine
This is Rietveld 408576698