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

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

Issue 187483005: Extending the Views-on-Mac experiment: whole app list grid. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still compiles r263560 + crrev/195793005 Created 6 years, 8 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/window/custom_frame_view.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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 Widget::InitParams params; 209 Widget::InitParams params;
210 params.bounds = bounds; 210 params.bounds = bounds;
211 params.delegate = delegate; 211 params.delegate = delegate;
212 params.top_level = true; 212 params.top_level = true;
213 widget->Init(params); 213 widget->Init(params);
214 return widget; 214 return widget;
215 } 215 }
216 216
217 // static 217 // static
218 Widget* Widget::CreateWindowWithParent(WidgetDelegate* delegate, 218 Widget* Widget::CreateWindowWithParent(WidgetDelegate* delegate,
219 gfx::NativeWindow parent) { 219 gfx::NativeView parent) {
220 return CreateWindowWithParentAndBounds(delegate, parent, gfx::Rect()); 220 return CreateWindowWithParentAndBounds(delegate, parent, gfx::Rect());
221 } 221 }
222 222
223 // static 223 // static
224 Widget* Widget::CreateWindowWithParentAndBounds(WidgetDelegate* delegate, 224 Widget* Widget::CreateWindowWithParentAndBounds(WidgetDelegate* delegate,
225 gfx::NativeWindow parent, 225 gfx::NativeView parent,
226 const gfx::Rect& bounds) { 226 const gfx::Rect& bounds) {
227 Widget* widget = new Widget; 227 Widget* widget = new Widget;
228 Widget::InitParams params; 228 Widget::InitParams params;
229 params.delegate = delegate; 229 params.delegate = delegate;
230 params.parent = parent; 230 params.parent = parent;
231 params.bounds = bounds; 231 params.bounds = bounds;
232 widget->Init(params); 232 widget->Init(params);
233 return widget; 233 return widget;
234 } 234 }
235 235
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 1463
1464 //////////////////////////////////////////////////////////////////////////////// 1464 ////////////////////////////////////////////////////////////////////////////////
1465 // internal::NativeWidgetPrivate, NativeWidget implementation: 1465 // internal::NativeWidgetPrivate, NativeWidget implementation:
1466 1466
1467 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1467 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1468 return this; 1468 return this;
1469 } 1469 }
1470 1470
1471 } // namespace internal 1471 } // namespace internal
1472 } // namespace views 1472 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/window/custom_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698