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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 | 757 |
758 // Sets a different InputMethod instance to this widget. The instance | 758 // Sets a different InputMethod instance to this widget. The instance |
759 // must not be initialized, the ownership will be assumed by the widget. | 759 // must not be initialized, the ownership will be assumed by the widget. |
760 // It's only for testing purpose. | 760 // It's only for testing purpose. |
761 void ReplaceInputMethod(InputMethod* input_method); | 761 void ReplaceInputMethod(InputMethod* input_method); |
762 | 762 |
763 internal::NativeWidgetPrivate* native_widget_; | 763 internal::NativeWidgetPrivate* native_widget_; |
764 | 764 |
765 ObserverList<WidgetObserver> observers_; | 765 ObserverList<WidgetObserver> observers_; |
766 | 766 |
767 // Non-owned pointer to the Widget's delegate. May be NULL if no delegate is | 767 // Non-owned pointer to the Widget's delegate. If a NULL delegate is supplied |
768 // being used. | 768 // to Init() a default WidgetDelegate is created. |
769 WidgetDelegate* widget_delegate_; | 769 WidgetDelegate* widget_delegate_; |
770 | 770 |
771 // The root of the View hierarchy attached to this window. | 771 // The root of the View hierarchy attached to this window. |
772 // WARNING: see warning in tooltip_manager_ for ordering dependencies with | 772 // WARNING: see warning in tooltip_manager_ for ordering dependencies with |
773 // this and tooltip_manager_. | 773 // this and tooltip_manager_. |
774 scoped_ptr<internal::RootView> root_view_; | 774 scoped_ptr<internal::RootView> root_view_; |
775 | 775 |
776 // The View that provides the non-client area of the window (title bar, | 776 // The View that provides the non-client area of the window (title bar, |
777 // window controls, sizing borders etc). To use an implementation other than | 777 // window controls, sizing borders etc). To use an implementation other than |
778 // the default, this class must be sub-classed and this value set to the | 778 // the default, this class must be sub-classed and this value set to the |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 // True when window movement via mouse interaction with the frame should be | 856 // True when window movement via mouse interaction with the frame should be |
857 // disabled. | 857 // disabled. |
858 bool movement_disabled_; | 858 bool movement_disabled_; |
859 | 859 |
860 DISALLOW_COPY_AND_ASSIGN(Widget); | 860 DISALLOW_COPY_AND_ASSIGN(Widget); |
861 }; | 861 }; |
862 | 862 |
863 } // namespace views | 863 } // namespace views |
864 | 864 |
865 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 865 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |