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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 19 matching lines...) Expand all
30 #undef IsMaximized 30 #undef IsMaximized
31 #endif 31 #endif
32 #if defined(IsMinimized) 32 #if defined(IsMinimized)
33 #undef IsMinimized 33 #undef IsMinimized
34 #endif 34 #endif
35 #if defined(CreateWindow) 35 #if defined(CreateWindow)
36 #undef CreateWindow 36 #undef CreateWindow
37 #endif 37 #endif
38 #endif 38 #endif
39 39
40 class ToolbarActionViewUnitTest;
41
40 namespace base { 42 namespace base {
41 class TimeDelta; 43 class TimeDelta;
42 } 44 }
43 45
44 namespace gfx { 46 namespace gfx {
45 class Canvas; 47 class Canvas;
46 class Point; 48 class Point;
47 class Rect; 49 class Rect;
48 } 50 }
49 51
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 836
835 // Notification that a drag will start. Default implementation does nothing. 837 // Notification that a drag will start. Default implementation does nothing.
836 virtual void OnDragWillStart(); 838 virtual void OnDragWillStart();
837 839
838 // Notification that the drag performed by RunShellDrag() has completed. 840 // Notification that the drag performed by RunShellDrag() has completed.
839 virtual void OnDragComplete(); 841 virtual void OnDragComplete();
840 842
841 private: 843 private:
842 friend class ComboboxTest; 844 friend class ComboboxTest;
843 friend class TextfieldTest; 845 friend class TextfieldTest;
846 friend class ::ToolbarActionViewUnitTest;
847
848 // Temporarily sets |dragged_view| to simulate a drag. For use in unit tests.
849 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.
844 850
845 // Sets the value of |disable_inactive_rendering_|. If the value changes, 851 // Sets the value of |disable_inactive_rendering_|. If the value changes,
846 // both the NonClientView and WidgetDelegate are notified. 852 // both the NonClientView and WidgetDelegate are notified.
847 void SetInactiveRenderingDisabled(bool value); 853 void SetInactiveRenderingDisabled(bool value);
848 854
849 // Persists the window's restored position and "show" state using the 855 // Persists the window's restored position and "show" state using the
850 // window delegate. 856 // window delegate.
851 void SaveWindowPlacement(); 857 void SaveWindowPlacement();
852 858
853 // Invokes SaveWindowPlacement() if the native widget has been initialized. 859 // Invokes SaveWindowPlacement() if the native widget has been initialized.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 bool movement_disabled_; 974 bool movement_disabled_;
969 975
970 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 976 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
971 977
972 DISALLOW_COPY_AND_ASSIGN(Widget); 978 DISALLOW_COPY_AND_ASSIGN(Widget);
973 }; 979 };
974 980
975 } // namespace views 981 } // namespace views
976 982
977 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 983 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698