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

Side by Side Diff: ui/views/widget/widget.h

Issue 120503005: Merge NativeTextfieldViews into views::Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify Textfield border code. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/views.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « ui/views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698