| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 mirror_origin_in_rtl(false), | 116 mirror_origin_in_rtl(false), |
| 117 shadow_type(SHADOW_TYPE_DEFAULT), | 117 shadow_type(SHADOW_TYPE_DEFAULT), |
| 118 remove_standard_frame(false), | 118 remove_standard_frame(false), |
| 119 use_system_default_icon(false), | 119 use_system_default_icon(false), |
| 120 show_state(ui::SHOW_STATE_DEFAULT), | 120 show_state(ui::SHOW_STATE_DEFAULT), |
| 121 parent(NULL), | 121 parent(NULL), |
| 122 native_widget(NULL), | 122 native_widget(NULL), |
| 123 desktop_window_tree_host(NULL), | 123 desktop_window_tree_host(NULL), |
| 124 layer_type(ui::LAYER_TEXTURED), | 124 layer_type(ui::LAYER_TEXTURED), |
| 125 context(NULL), | 125 context(NULL), |
| 126 force_show_in_taskbar(false) { | 126 force_show_in_taskbar(false), |
| 127 force_software_compositing(false) { |
| 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(false), | 133 child(false), |
| 133 opacity(INFER_OPACITY), | 134 opacity(INFER_OPACITY), |
| 134 accept_events(true), | 135 accept_events(true), |
| 135 activatable(ACTIVATABLE_DEFAULT), | 136 activatable(ACTIVATABLE_DEFAULT), |
| 136 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG), | 137 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG), |
| 137 visible_on_all_workspaces(false), | 138 visible_on_all_workspaces(false), |
| 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 shadow_type(SHADOW_TYPE_DEFAULT), | 141 shadow_type(SHADOW_TYPE_DEFAULT), |
| 141 remove_standard_frame(false), | 142 remove_standard_frame(false), |
| 142 use_system_default_icon(false), | 143 use_system_default_icon(false), |
| 143 show_state(ui::SHOW_STATE_DEFAULT), | 144 show_state(ui::SHOW_STATE_DEFAULT), |
| 144 parent(NULL), | 145 parent(NULL), |
| 145 native_widget(NULL), | 146 native_widget(NULL), |
| 146 desktop_window_tree_host(NULL), | 147 desktop_window_tree_host(NULL), |
| 147 layer_type(ui::LAYER_TEXTURED), | 148 layer_type(ui::LAYER_TEXTURED), |
| 148 context(NULL), | 149 context(NULL), |
| 149 force_show_in_taskbar(false) { | 150 force_show_in_taskbar(false), |
| 151 force_software_compositing(false) { |
| 150 } | 152 } |
| 151 | 153 |
| 152 Widget::InitParams::~InitParams() { | 154 Widget::InitParams::~InitParams() { |
| 153 } | 155 } |
| 154 | 156 |
| 155 //////////////////////////////////////////////////////////////////////////////// | 157 //////////////////////////////////////////////////////////////////////////////// |
| 156 // Widget, public: | 158 // Widget, public: |
| 157 | 159 |
| 158 Widget::Widget() | 160 Widget::Widget() |
| 159 : native_widget_(NULL), | 161 : native_widget_(NULL), |
| (...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 | 1493 |
| 1492 //////////////////////////////////////////////////////////////////////////////// | 1494 //////////////////////////////////////////////////////////////////////////////// |
| 1493 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1495 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1494 | 1496 |
| 1495 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1497 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1496 return this; | 1498 return this; |
| 1497 } | 1499 } |
| 1498 | 1500 |
| 1499 } // namespace internal | 1501 } // namespace internal |
| 1500 } // namespace views | 1502 } // namespace views |
| OLD | NEW |