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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 create_texture_for_layer(true) { | 126 create_texture_for_layer(true) { |
127 } | 127 } |
128 | 128 |
129 Widget::InitParams::InitParams(Type type) | 129 Widget::InitParams::InitParams(Type type) |
130 : type(type), | 130 : type(type), |
131 delegate(NULL), | 131 delegate(NULL), |
132 child(type == TYPE_CONTROL), | 132 child(type == TYPE_CONTROL), |
133 transient(type == TYPE_BUBBLE || type == TYPE_POPUP || type == TYPE_MENU), | 133 transient(type == TYPE_BUBBLE || type == TYPE_POPUP || type == TYPE_MENU), |
134 transparent(false), | 134 transparent(false), |
135 accept_events(true), | 135 accept_events(true), |
136 can_activate(type != TYPE_POPUP && type != TYPE_MENU), | 136 can_activate( |
| 137 type != TYPE_POPUP && type != TYPE_MENU && type != TYPE_CONTROL), |
137 keep_on_top(type == TYPE_MENU), | 138 keep_on_top(type == TYPE_MENU), |
138 ownership(NATIVE_WIDGET_OWNS_WIDGET), | 139 ownership(NATIVE_WIDGET_OWNS_WIDGET), |
139 mirror_origin_in_rtl(false), | 140 mirror_origin_in_rtl(false), |
140 has_dropshadow(false), | 141 has_dropshadow(false), |
141 show_state(ui::SHOW_STATE_DEFAULT), | 142 show_state(ui::SHOW_STATE_DEFAULT), |
142 double_buffer(false), | 143 double_buffer(false), |
143 parent(NULL), | 144 parent(NULL), |
144 parent_widget(NULL), | 145 parent_widget(NULL), |
145 native_widget(NULL), | 146 native_widget(NULL), |
146 top_level(false), | 147 top_level(false), |
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 | 1199 |
1199 //////////////////////////////////////////////////////////////////////////////// | 1200 //////////////////////////////////////////////////////////////////////////////// |
1200 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1201 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1201 | 1202 |
1202 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1203 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1203 return this; | 1204 return this; |
1204 } | 1205 } |
1205 | 1206 |
1206 } // namespace internal | 1207 } // namespace internal |
1207 } // namespace views | 1208 } // namespace views |
OLD | NEW |