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

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

Issue 290553002: Refactor menu dependency on aura/wm SetShadowType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename enum Created 6 years, 7 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_hwnd_utils.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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 : type(TYPE_WINDOW), 109 : type(TYPE_WINDOW),
110 delegate(NULL), 110 delegate(NULL),
111 child(false), 111 child(false),
112 opacity(INFER_OPACITY), 112 opacity(INFER_OPACITY),
113 accept_events(true), 113 accept_events(true),
114 activatable(ACTIVATABLE_DEFAULT), 114 activatable(ACTIVATABLE_DEFAULT),
115 keep_on_top(false), 115 keep_on_top(false),
116 visible_on_all_workspaces(false), 116 visible_on_all_workspaces(false),
117 ownership(NATIVE_WIDGET_OWNS_WIDGET), 117 ownership(NATIVE_WIDGET_OWNS_WIDGET),
118 mirror_origin_in_rtl(false), 118 mirror_origin_in_rtl(false),
119 has_dropshadow(false), 119 shadow_type(SHADOW_TYPE_DEFAULT),
120 remove_standard_frame(false), 120 remove_standard_frame(false),
121 use_system_default_icon(false), 121 use_system_default_icon(false),
122 show_state(ui::SHOW_STATE_DEFAULT), 122 show_state(ui::SHOW_STATE_DEFAULT),
123 double_buffer(false), 123 double_buffer(false),
124 parent(NULL), 124 parent(NULL),
125 native_widget(NULL), 125 native_widget(NULL),
126 desktop_window_tree_host(NULL), 126 desktop_window_tree_host(NULL),
127 top_level(false), 127 top_level(false),
128 layer_type(aura::WINDOW_LAYER_TEXTURED), 128 layer_type(aura::WINDOW_LAYER_TEXTURED),
129 context(NULL), 129 context(NULL),
130 force_show_in_taskbar(false) { 130 force_show_in_taskbar(false) {
131 } 131 }
132 132
133 Widget::InitParams::InitParams(Type type) 133 Widget::InitParams::InitParams(Type type)
134 : type(type), 134 : type(type),
135 delegate(NULL), 135 delegate(NULL),
136 child(type == TYPE_CONTROL), 136 child(type == TYPE_CONTROL),
137 opacity(INFER_OPACITY), 137 opacity(INFER_OPACITY),
138 accept_events(true), 138 accept_events(true),
139 activatable(ACTIVATABLE_DEFAULT), 139 activatable(ACTIVATABLE_DEFAULT),
140 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG), 140 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG),
141 visible_on_all_workspaces(false), 141 visible_on_all_workspaces(false),
142 ownership(NATIVE_WIDGET_OWNS_WIDGET), 142 ownership(NATIVE_WIDGET_OWNS_WIDGET),
143 mirror_origin_in_rtl(false), 143 mirror_origin_in_rtl(false),
144 has_dropshadow(false), 144 shadow_type(SHADOW_TYPE_DEFAULT),
145 remove_standard_frame(false), 145 remove_standard_frame(false),
146 use_system_default_icon(false), 146 use_system_default_icon(false),
147 show_state(ui::SHOW_STATE_DEFAULT), 147 show_state(ui::SHOW_STATE_DEFAULT),
148 double_buffer(false), 148 double_buffer(false),
149 parent(NULL), 149 parent(NULL),
150 native_widget(NULL), 150 native_widget(NULL),
151 desktop_window_tree_host(NULL), 151 desktop_window_tree_host(NULL),
152 top_level(false), 152 top_level(false),
153 layer_type(aura::WINDOW_LAYER_TEXTURED), 153 layer_type(aura::WINDOW_LAYER_TEXTURED),
154 context(NULL), 154 context(NULL),
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 1522
1523 //////////////////////////////////////////////////////////////////////////////// 1523 ////////////////////////////////////////////////////////////////////////////////
1524 // internal::NativeWidgetPrivate, NativeWidget implementation: 1524 // internal::NativeWidgetPrivate, NativeWidget implementation:
1525 1525
1526 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1526 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1527 return this; 1527 return this;
1528 } 1528 }
1529 1529
1530 } // namespace internal 1530 } // namespace internal
1531 } // namespace views 1531 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_hwnd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698