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