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

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

Issue 9728002: Removing deprecated GTK-Views code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/native_widget_gtk.cc ('k') | ui/views/widget/tooltip_manager_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/views/widget/native_widget_test_utils.h"
6
7 #include "ui/views/view.h"
8 #include "ui/views/widget/native_widget_private.h"
9 #include "ui/views/widget/widget.h"
10
11 namespace views {
12 namespace internal {
13
14 namespace {
15
16 NativeWidgetPrivate* CreateNativeWidgetOfType(Widget::InitParams::Type type) {
17 Widget* widget = new Widget;
18 Widget::InitParams params(type);
19 params.ownership = views::Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET;
20 params.bounds = gfx::Rect(10, 10, 200, 200);
21 widget->Init(params);
22 return widget->native_widget_private();
23 }
24
25 } // namespace
26
27 NativeWidgetPrivate* CreateNativeWidget() {
28 return CreateNativeWidgetOfType(Widget::InitParams::TYPE_POPUP);
29 }
30
31 NativeWidgetPrivate* CreateNativeSubWidget() {
32 return CreateNativeWidgetOfType(Widget::InitParams::TYPE_CONTROL);
33 }
34
35 } // namespace internal
36 } // namespace ui
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_gtk.cc ('k') | ui/views/widget/tooltip_manager_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698