OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "ui/views/widget/widget.h" | 5 #include "ui/views/widget/widget.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 Widget::InitParams::InitParams() | 108 Widget::InitParams::InitParams() |
109 : type(TYPE_WINDOW), | 109 : type(TYPE_WINDOW), |
110 delegate(NULL), | 110 delegate(NULL), |
111 child(false), | 111 child(false), |
112 transient(false), | 112 transient(false), |
113 transparent(false), | 113 transparent(false), |
114 accept_events(true), | 114 accept_events(true), |
115 can_activate(true), | 115 can_activate(true), |
116 keep_on_top(false), | 116 keep_on_top(false), |
| 117 is_panel(false), |
117 ownership(NATIVE_WIDGET_OWNS_WIDGET), | 118 ownership(NATIVE_WIDGET_OWNS_WIDGET), |
118 mirror_origin_in_rtl(false), | 119 mirror_origin_in_rtl(false), |
119 has_dropshadow(false), | 120 has_dropshadow(false), |
120 show_state(ui::SHOW_STATE_DEFAULT), | 121 show_state(ui::SHOW_STATE_DEFAULT), |
121 double_buffer(false), | 122 double_buffer(false), |
122 parent(NULL), | 123 parent(NULL), |
123 parent_widget(NULL), | 124 parent_widget(NULL), |
124 native_widget(NULL), | 125 native_widget(NULL), |
125 top_level(false), | 126 top_level(false), |
126 create_texture_for_layer(true) { | 127 create_texture_for_layer(true) { |
127 } | 128 } |
128 | 129 |
129 Widget::InitParams::InitParams(Type type) | 130 Widget::InitParams::InitParams(Type type) |
130 : type(type), | 131 : type(type), |
131 delegate(NULL), | 132 delegate(NULL), |
132 child(type == TYPE_CONTROL), | 133 child(type == TYPE_CONTROL), |
133 transient(type == TYPE_BUBBLE || type == TYPE_POPUP || type == TYPE_MENU), | 134 transient(type == TYPE_BUBBLE || type == TYPE_POPUP || type == TYPE_MENU), |
134 transparent(false), | 135 transparent(false), |
135 accept_events(true), | 136 accept_events(true), |
136 can_activate( | 137 can_activate( |
137 type != TYPE_POPUP && type != TYPE_MENU && type != TYPE_CONTROL), | 138 type != TYPE_POPUP && type != TYPE_MENU && type != TYPE_CONTROL), |
138 keep_on_top(type == TYPE_MENU), | 139 keep_on_top(type == TYPE_MENU), |
| 140 is_panel(false), |
139 ownership(NATIVE_WIDGET_OWNS_WIDGET), | 141 ownership(NATIVE_WIDGET_OWNS_WIDGET), |
140 mirror_origin_in_rtl(false), | 142 mirror_origin_in_rtl(false), |
141 has_dropshadow(false), | 143 has_dropshadow(false), |
142 show_state(ui::SHOW_STATE_DEFAULT), | 144 show_state(ui::SHOW_STATE_DEFAULT), |
143 double_buffer(false), | 145 double_buffer(false), |
144 parent(NULL), | 146 parent(NULL), |
145 parent_widget(NULL), | 147 parent_widget(NULL), |
146 native_widget(NULL), | 148 native_widget(NULL), |
147 top_level(false), | 149 top_level(false), |
148 create_texture_for_layer(true) { | 150 create_texture_for_layer(true) { |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 | 1204 |
1203 //////////////////////////////////////////////////////////////////////////////// | 1205 //////////////////////////////////////////////////////////////////////////////// |
1204 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1206 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1205 | 1207 |
1206 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1208 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1207 return this; | 1209 return this; |
1208 } | 1210 } |
1209 | 1211 |
1210 } // namespace internal | 1212 } // namespace internal |
1211 } // namespace views | 1213 } // namespace views |
OLD | NEW |