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

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

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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/gtk_views_window.h ('k') | ui/views/widget/monitor_win.h » ('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) 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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "ui/views/events/event.h" 7 #include "ui/views/events/event.h"
8 #include "ui/views/focus/focus_manager.h" 8 #include "ui/views/focus/focus_manager.h"
9 #include "views/widget/gtk_views_window.h" 9 #include "ui/views/widget/gtk_views_window.h"
10 #include "views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
11 11
12 G_BEGIN_DECLS 12 G_BEGIN_DECLS
13 13
14 G_DEFINE_TYPE(GtkViewsWindow, gtk_views_window, GTK_TYPE_WINDOW) 14 G_DEFINE_TYPE(GtkViewsWindow, gtk_views_window, GTK_TYPE_WINDOW)
15 15
16 static void gtk_views_window_move_focus(GtkWindow* window, 16 static void gtk_views_window_move_focus(GtkWindow* window,
17 GtkDirectionType dir) { 17 GtkDirectionType dir) {
18 views::Widget* widget = views::Widget::GetWidgetForNativeWindow(window); 18 views::Widget* widget = views::Widget::GetWidgetForNativeWindow(window);
19 views::FocusManager* focus_manager = 19 views::FocusManager* focus_manager =
20 widget ? widget->GetFocusManager() : NULL; 20 widget ? widget->GetFocusManager() : NULL;
(...skipping 16 matching lines...) Expand all
37 } 37 }
38 38
39 static void gtk_views_window_init(GtkViewsWindow* window) { 39 static void gtk_views_window_init(GtkViewsWindow* window) {
40 } 40 }
41 41
42 GtkWidget* gtk_views_window_new(GtkWindowType type) { 42 GtkWidget* gtk_views_window_new(GtkWindowType type) {
43 return GTK_WIDGET(g_object_new(GTK_TYPE_VIEWS_WINDOW, "type", type, NULL)); 43 return GTK_WIDGET(g_object_new(GTK_TYPE_VIEWS_WINDOW, "type", type, NULL));
44 } 44 }
45 45
46 G_END_DECLS 46 G_END_DECLS
OLDNEW
« no previous file with comments | « ui/views/widget/gtk_views_window.h ('k') | ui/views/widget/monitor_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698