| 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 // Provided to allow the NativeWidget implementations to destroy the RootView | 714 // Provided to allow the NativeWidget implementations to destroy the RootView |
| 715 // _before_ the focus manager/tooltip manager. | 715 // _before_ the focus manager/tooltip manager. |
| 716 // TODO(beng): remove once we fold those objects onto this one. | 716 // TODO(beng): remove once we fold those objects onto this one. |
| 717 void DestroyRootView(); | 717 void DestroyRootView(); |
| 718 | 718 |
| 719 private: | 719 private: |
| 720 friend class NativeTextfieldViewsTest; | 720 friend class NativeTextfieldViewsTest; |
| 721 friend class NativeComboboxViewsTest; | 721 friend class NativeComboboxViewsTest; |
| 722 friend class ScopedEvent; | 722 friend class ScopedEvent; |
| 723 | 723 |
| 724 class PostMousePressedProcessor; | |
| 725 | |
| 726 // Returns whether capture should be released on mouse release. | 724 // Returns whether capture should be released on mouse release. |
| 727 virtual bool ShouldReleaseCaptureOnMouseReleased() const; | 725 virtual bool ShouldReleaseCaptureOnMouseReleased() const; |
| 728 | 726 |
| 729 // Sets the value of |disable_inactive_rendering_|. If the value changes, | 727 // Sets the value of |disable_inactive_rendering_|. If the value changes, |
| 730 // both the NonClientView and WidgetDelegate are notified. | 728 // both the NonClientView and WidgetDelegate are notified. |
| 731 void SetInactiveRenderingDisabled(bool value); | 729 void SetInactiveRenderingDisabled(bool value); |
| 732 | 730 |
| 733 // Persists the window's restored position and "show" state using the | 731 // Persists the window's restored position and "show" state using the |
| 734 // window delegate. | 732 // window delegate. |
| 735 void SaveWindowPlacement(); | 733 void SaveWindowPlacement(); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 849 // True when window movement via mouse interaction with the frame should be | 847 // True when window movement via mouse interaction with the frame should be |
| 850 // disabled. | 848 // disabled. |
| 851 bool movement_disabled_; | 849 bool movement_disabled_; |
| 852 | 850 |
| 853 DISALLOW_COPY_AND_ASSIGN(Widget); | 851 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 854 }; | 852 }; |
| 855 | 853 |
| 856 } // namespace views | 854 } // namespace views |
| 857 | 855 |
| 858 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 856 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |