OLD | NEW |
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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 // TODO(beng): Investigate whether or not this is needed. | 751 // TODO(beng): Investigate whether or not this is needed. |
752 virtual internal::RootView* CreateRootView(); | 752 virtual internal::RootView* CreateRootView(); |
753 | 753 |
754 // Provided to allow the NativeWidget implementations to destroy the RootView | 754 // Provided to allow the NativeWidget implementations to destroy the RootView |
755 // _before_ the focus manager/tooltip manager. | 755 // _before_ the focus manager/tooltip manager. |
756 // TODO(beng): remove once we fold those objects onto this one. | 756 // TODO(beng): remove once we fold those objects onto this one. |
757 void DestroyRootView(); | 757 void DestroyRootView(); |
758 | 758 |
759 private: | 759 private: |
760 friend class ComboboxTest; | 760 friend class ComboboxTest; |
761 friend class NativeTextfieldViewsTest; | 761 friend class TextfieldTest; |
762 | 762 |
763 // Sets the value of |disable_inactive_rendering_|. If the value changes, | 763 // Sets the value of |disable_inactive_rendering_|. If the value changes, |
764 // both the NonClientView and WidgetDelegate are notified. | 764 // both the NonClientView and WidgetDelegate are notified. |
765 void SetInactiveRenderingDisabled(bool value); | 765 void SetInactiveRenderingDisabled(bool value); |
766 | 766 |
767 // Persists the window's restored position and "show" state using the | 767 // Persists the window's restored position and "show" state using the |
768 // window delegate. | 768 // window delegate. |
769 void SaveWindowPlacement(); | 769 void SaveWindowPlacement(); |
770 | 770 |
771 // Sizes and positions the window just after it is created. | 771 // Sizes and positions the window just after it is created. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 // True when window movement via mouse interaction with the frame should be | 887 // True when window movement via mouse interaction with the frame should be |
888 // disabled. | 888 // disabled. |
889 bool movement_disabled_; | 889 bool movement_disabled_; |
890 | 890 |
891 DISALLOW_COPY_AND_ASSIGN(Widget); | 891 DISALLOW_COPY_AND_ASSIGN(Widget); |
892 }; | 892 }; |
893 | 893 |
894 } // namespace views | 894 } // namespace views |
895 | 895 |
896 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 896 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |