Chromium Code Reviews| 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. |