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

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

Issue 122353003: On Linux, the App Launcher is now shown in the taskbar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added TODO to respect this flag in Windows. 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') | 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) 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(ui::LAYER_TEXTURED),
131 context(NULL) { 131 context(NULL),
132 force_show_in_taskbar(false) {
132 } 133 }
133 134
134 Widget::InitParams::InitParams(Type type) 135 Widget::InitParams::InitParams(Type type)
135 : type(type), 136 : type(type),
136 delegate(NULL), 137 delegate(NULL),
137 child(type == TYPE_CONTROL), 138 child(type == TYPE_CONTROL),
138 opacity(INFER_OPACITY), 139 opacity(INFER_OPACITY),
139 accept_events(true), 140 accept_events(true),
140 can_activate(type != TYPE_POPUP && type != TYPE_MENU && 141 can_activate(type != TYPE_POPUP && type != TYPE_MENU &&
141 type != TYPE_DRAG), 142 type != TYPE_DRAG),
142 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG), 143 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG),
143 ownership(NATIVE_WIDGET_OWNS_WIDGET), 144 ownership(NATIVE_WIDGET_OWNS_WIDGET),
144 mirror_origin_in_rtl(false), 145 mirror_origin_in_rtl(false),
145 has_dropshadow(false), 146 has_dropshadow(false),
146 remove_standard_frame(false), 147 remove_standard_frame(false),
147 use_system_default_icon(false), 148 use_system_default_icon(false),
148 show_state(ui::SHOW_STATE_DEFAULT), 149 show_state(ui::SHOW_STATE_DEFAULT),
149 double_buffer(false), 150 double_buffer(false),
150 parent(NULL), 151 parent(NULL),
151 native_widget(NULL), 152 native_widget(NULL),
152 desktop_root_window_host(NULL), 153 desktop_root_window_host(NULL),
153 top_level(false), 154 top_level(false),
154 layer_type(ui::LAYER_TEXTURED), 155 layer_type(ui::LAYER_TEXTURED),
155 context(NULL) { 156 context(NULL),
157 force_show_in_taskbar(false) {
156 } 158 }
157 159
158 Widget::InitParams::~InitParams() { 160 Widget::InitParams::~InitParams() {
159 } 161 }
160 162
161 //////////////////////////////////////////////////////////////////////////////// 163 ////////////////////////////////////////////////////////////////////////////////
162 // Widget, public: 164 // Widget, public:
163 165
164 Widget::Widget() 166 Widget::Widget()
165 : native_widget_(NULL), 167 : native_widget_(NULL),
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 1423
1422 //////////////////////////////////////////////////////////////////////////////// 1424 ////////////////////////////////////////////////////////////////////////////////
1423 // internal::NativeWidgetPrivate, NativeWidget implementation: 1425 // internal::NativeWidgetPrivate, NativeWidget implementation:
1424 1426
1425 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1427 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1426 return this; 1428 return this;
1427 } 1429 }
1428 1430
1429 } // namespace internal 1431 } // namespace internal
1430 } // namespace views 1432 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698