| 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 #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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 delegate(NULL), | 113 delegate(NULL), |
| 114 child(false), | 114 child(false), |
| 115 transient(false), | 115 transient(false), |
| 116 transparent(false), | 116 transparent(false), |
| 117 accept_events(true), | 117 accept_events(true), |
| 118 can_activate(true), | 118 can_activate(true), |
| 119 keep_on_top(false), | 119 keep_on_top(false), |
| 120 ownership(NATIVE_WIDGET_OWNS_WIDGET), | 120 ownership(NATIVE_WIDGET_OWNS_WIDGET), |
| 121 mirror_origin_in_rtl(false), | 121 mirror_origin_in_rtl(false), |
| 122 has_dropshadow(false), | 122 has_dropshadow(false), |
| 123 remove_standard_frame(false), |
| 123 show_state(ui::SHOW_STATE_DEFAULT), | 124 show_state(ui::SHOW_STATE_DEFAULT), |
| 124 double_buffer(false), | 125 double_buffer(false), |
| 125 parent(NULL), | 126 parent(NULL), |
| 126 parent_widget(NULL), | 127 parent_widget(NULL), |
| 127 native_widget(NULL), | 128 native_widget(NULL), |
| 128 top_level(false), | 129 top_level(false), |
| 129 create_texture_for_layer(true) { | 130 create_texture_for_layer(true) { |
| 130 } | 131 } |
| 131 | 132 |
| 132 Widget::InitParams::InitParams(Type type) | 133 Widget::InitParams::InitParams(Type type) |
| 133 : type(type), | 134 : type(type), |
| 134 delegate(NULL), | 135 delegate(NULL), |
| 135 child(type == TYPE_CONTROL), | 136 child(type == TYPE_CONTROL), |
| 136 transient(type == TYPE_BUBBLE || type == TYPE_POPUP || type == TYPE_MENU), | 137 transient(type == TYPE_BUBBLE || type == TYPE_POPUP || type == TYPE_MENU), |
| 137 transparent(false), | 138 transparent(false), |
| 138 accept_events(true), | 139 accept_events(true), |
| 139 can_activate( | 140 can_activate( |
| 140 type != TYPE_POPUP && type != TYPE_MENU && type != TYPE_CONTROL), | 141 type != TYPE_POPUP && type != TYPE_MENU && type != TYPE_CONTROL), |
| 141 keep_on_top(type == TYPE_MENU), | 142 keep_on_top(type == TYPE_MENU), |
| 142 ownership(NATIVE_WIDGET_OWNS_WIDGET), | 143 ownership(NATIVE_WIDGET_OWNS_WIDGET), |
| 143 mirror_origin_in_rtl(false), | 144 mirror_origin_in_rtl(false), |
| 144 has_dropshadow(false), | 145 has_dropshadow(false), |
| 146 remove_standard_frame(false), |
| 145 show_state(ui::SHOW_STATE_DEFAULT), | 147 show_state(ui::SHOW_STATE_DEFAULT), |
| 146 double_buffer(false), | 148 double_buffer(false), |
| 147 parent(NULL), | 149 parent(NULL), |
| 148 parent_widget(NULL), | 150 parent_widget(NULL), |
| 149 native_widget(NULL), | 151 native_widget(NULL), |
| 150 top_level(false), | 152 top_level(false), |
| 151 create_texture_for_layer(true) { | 153 create_texture_for_layer(true) { |
| 152 } | 154 } |
| 153 | 155 |
| 154 gfx::NativeView Widget::InitParams::GetParent() const { | 156 gfx::NativeView Widget::InitParams::GetParent() const { |
| (...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 | 1268 |
| 1267 //////////////////////////////////////////////////////////////////////////////// | 1269 //////////////////////////////////////////////////////////////////////////////// |
| 1268 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1270 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1269 | 1271 |
| 1270 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1272 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1271 return this; | 1273 return this; |
| 1272 } | 1274 } |
| 1273 | 1275 |
| 1274 } // namespace internal | 1276 } // namespace internal |
| 1275 } // namespace views | 1277 } // namespace views |
| OLD | NEW |