Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: ui/views/widget/widget.cc

Issue 121773003: Makes Window::Init take a WindowLayerType instead of LayerType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to master Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 mirror_origin_in_rtl(false), 120 mirror_origin_in_rtl(false),
121 has_dropshadow(false), 121 has_dropshadow(false),
122 remove_standard_frame(false), 122 remove_standard_frame(false),
123 use_system_default_icon(false), 123 use_system_default_icon(false),
124 show_state(ui::SHOW_STATE_DEFAULT), 124 show_state(ui::SHOW_STATE_DEFAULT),
125 double_buffer(false), 125 double_buffer(false),
126 parent(NULL), 126 parent(NULL),
127 native_widget(NULL), 127 native_widget(NULL),
128 desktop_root_window_host(NULL), 128 desktop_root_window_host(NULL),
129 top_level(false), 129 top_level(false),
130 layer_type(ui::LAYER_TEXTURED), 130 layer_type(aura::WINDOW_LAYER_TEXTURED),
131 context(NULL) { 131 context(NULL) {
132 } 132 }
133 133
134 Widget::InitParams::InitParams(Type type) 134 Widget::InitParams::InitParams(Type type)
135 : type(type), 135 : type(type),
136 delegate(NULL), 136 delegate(NULL),
137 child(type == TYPE_CONTROL), 137 child(type == TYPE_CONTROL),
138 opacity(INFER_OPACITY), 138 opacity(INFER_OPACITY),
139 accept_events(true), 139 accept_events(true),
140 can_activate(type != TYPE_POPUP && type != TYPE_MENU && 140 can_activate(type != TYPE_POPUP && type != TYPE_MENU &&
141 type != TYPE_DRAG), 141 type != TYPE_DRAG),
142 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG), 142 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG),
143 ownership(NATIVE_WIDGET_OWNS_WIDGET), 143 ownership(NATIVE_WIDGET_OWNS_WIDGET),
144 mirror_origin_in_rtl(false), 144 mirror_origin_in_rtl(false),
145 has_dropshadow(false), 145 has_dropshadow(false),
146 remove_standard_frame(false), 146 remove_standard_frame(false),
147 use_system_default_icon(false), 147 use_system_default_icon(false),
148 show_state(ui::SHOW_STATE_DEFAULT), 148 show_state(ui::SHOW_STATE_DEFAULT),
149 double_buffer(false), 149 double_buffer(false),
150 parent(NULL), 150 parent(NULL),
151 native_widget(NULL), 151 native_widget(NULL),
152 desktop_root_window_host(NULL), 152 desktop_root_window_host(NULL),
153 top_level(false), 153 top_level(false),
154 layer_type(ui::LAYER_TEXTURED), 154 layer_type(aura::WINDOW_LAYER_TEXTURED),
155 context(NULL) { 155 context(NULL) {
156 } 156 }
157 157
158 Widget::InitParams::~InitParams() { 158 Widget::InitParams::~InitParams() {
159 } 159 }
160 160
161 //////////////////////////////////////////////////////////////////////////////// 161 ////////////////////////////////////////////////////////////////////////////////
162 // Widget, public: 162 // Widget, public:
163 163
164 Widget::Widget() 164 Widget::Widget()
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 1421
1422 //////////////////////////////////////////////////////////////////////////////// 1422 ////////////////////////////////////////////////////////////////////////////////
1423 // internal::NativeWidgetPrivate, NativeWidget implementation: 1423 // internal::NativeWidgetPrivate, NativeWidget implementation:
1424 1424
1425 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1425 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1426 return this; 1426 return this;
1427 } 1427 }
1428 1428
1429 } // namespace internal 1429 } // namespace internal
1430 } // namespace views 1430 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698