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/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 visible_on_all_workspaces(false), | 105 visible_on_all_workspaces(false), |
106 ownership(NATIVE_WIDGET_OWNS_WIDGET), | 106 ownership(NATIVE_WIDGET_OWNS_WIDGET), |
107 mirror_origin_in_rtl(false), | 107 mirror_origin_in_rtl(false), |
108 shadow_type(SHADOW_TYPE_DEFAULT), | 108 shadow_type(SHADOW_TYPE_DEFAULT), |
109 remove_standard_frame(false), | 109 remove_standard_frame(false), |
110 use_system_default_icon(false), | 110 use_system_default_icon(false), |
111 show_state(ui::SHOW_STATE_DEFAULT), | 111 show_state(ui::SHOW_STATE_DEFAULT), |
112 parent(NULL), | 112 parent(NULL), |
113 native_widget(NULL), | 113 native_widget(NULL), |
114 desktop_window_tree_host(NULL), | 114 desktop_window_tree_host(NULL), |
115 layer_type(aura::WINDOW_LAYER_TEXTURED), | 115 layer_type(ui::LAYER_TEXTURED), |
116 context(NULL), | 116 context(NULL), |
117 force_show_in_taskbar(false) { | 117 force_show_in_taskbar(false) { |
118 } | 118 } |
119 | 119 |
120 Widget::InitParams::InitParams(Type type) | 120 Widget::InitParams::InitParams(Type type) |
121 : type(type), | 121 : type(type), |
122 delegate(NULL), | 122 delegate(NULL), |
123 child(false), | 123 child(false), |
124 opacity(INFER_OPACITY), | 124 opacity(INFER_OPACITY), |
125 accept_events(true), | 125 accept_events(true), |
126 activatable(ACTIVATABLE_DEFAULT), | 126 activatable(ACTIVATABLE_DEFAULT), |
127 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG), | 127 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG), |
128 visible_on_all_workspaces(false), | 128 visible_on_all_workspaces(false), |
129 ownership(NATIVE_WIDGET_OWNS_WIDGET), | 129 ownership(NATIVE_WIDGET_OWNS_WIDGET), |
130 mirror_origin_in_rtl(false), | 130 mirror_origin_in_rtl(false), |
131 shadow_type(SHADOW_TYPE_DEFAULT), | 131 shadow_type(SHADOW_TYPE_DEFAULT), |
132 remove_standard_frame(false), | 132 remove_standard_frame(false), |
133 use_system_default_icon(false), | 133 use_system_default_icon(false), |
134 show_state(ui::SHOW_STATE_DEFAULT), | 134 show_state(ui::SHOW_STATE_DEFAULT), |
135 parent(NULL), | 135 parent(NULL), |
136 native_widget(NULL), | 136 native_widget(NULL), |
137 desktop_window_tree_host(NULL), | 137 desktop_window_tree_host(NULL), |
138 layer_type(aura::WINDOW_LAYER_TEXTURED), | 138 layer_type(ui::LAYER_TEXTURED), |
139 context(NULL), | 139 context(NULL), |
140 force_show_in_taskbar(false) { | 140 force_show_in_taskbar(false) { |
141 } | 141 } |
142 | 142 |
143 Widget::InitParams::~InitParams() { | 143 Widget::InitParams::~InitParams() { |
144 } | 144 } |
145 | 145 |
146 //////////////////////////////////////////////////////////////////////////////// | 146 //////////////////////////////////////////////////////////////////////////////// |
147 // Widget, public: | 147 // Widget, public: |
148 | 148 |
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1537 | 1537 |
1538 //////////////////////////////////////////////////////////////////////////////// | 1538 //////////////////////////////////////////////////////////////////////////////// |
1539 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1539 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1540 | 1540 |
1541 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1541 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1542 return this; | 1542 return this; |
1543 } | 1543 } |
1544 | 1544 |
1545 } // namespace internal | 1545 } // namespace internal |
1546 } // namespace views | 1546 } // namespace views |
OLD | NEW |