| OLD | NEW |
| 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 #include "views/events/event.h" | 6 |
| 7 #include "views/focus/focus_manager.h" | 7 #include "ui/views/events/event.h" |
| 8 #include "ui/views/focus/focus_manager.h" |
| 8 #include "views/widget/gtk_views_window.h" | 9 #include "views/widget/gtk_views_window.h" |
| 9 #include "views/widget/widget.h" | 10 #include "views/widget/widget.h" |
| 10 | 11 |
| 11 G_BEGIN_DECLS | 12 G_BEGIN_DECLS |
| 12 | 13 |
| 13 G_DEFINE_TYPE(GtkViewsWindow, gtk_views_window, GTK_TYPE_WINDOW) | 14 G_DEFINE_TYPE(GtkViewsWindow, gtk_views_window, GTK_TYPE_WINDOW) |
| 14 | 15 |
| 15 static void gtk_views_window_move_focus(GtkWindow* window, | 16 static void gtk_views_window_move_focus(GtkWindow* window, |
| 16 GtkDirectionType dir) { | 17 GtkDirectionType dir) { |
| 17 views::Widget* widget = views::Widget::GetWidgetForNativeWindow(window); | 18 views::Widget* widget = views::Widget::GetWidgetForNativeWindow(window); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 } | 37 } |
| 37 | 38 |
| 38 static void gtk_views_window_init(GtkViewsWindow* window) { | 39 static void gtk_views_window_init(GtkViewsWindow* window) { |
| 39 } | 40 } |
| 40 | 41 |
| 41 GtkWidget* gtk_views_window_new(GtkWindowType type) { | 42 GtkWidget* gtk_views_window_new(GtkWindowType type) { |
| 42 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)); |
| 43 } | 44 } |
| 44 | 45 |
| 45 G_END_DECLS | 46 G_END_DECLS |
| OLD | NEW |