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

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

Issue 8872043: Don't activate TYPE_CONTROL widget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years 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 | « no previous file | no next file » | 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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698