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

Unified Diff: ui/views/widget/gtk_views_window.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/gtk_views_window.h ('k') | ui/views/widget/native_widget_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/gtk_views_window.cc
diff --git a/ui/views/widget/gtk_views_window.cc b/ui/views/widget/gtk_views_window.cc
deleted file mode 100644
index 6470850933fc945d197389efe8ca951cc0ebe010..0000000000000000000000000000000000000000
--- a/ui/views/widget/gtk_views_window.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <gtk/gtk.h>
-
-#include "ui/views/events/event.h"
-#include "ui/views/focus/focus_manager.h"
-#include "ui/views/widget/gtk_views_window.h"
-#include "ui/views/widget/widget.h"
-
-G_BEGIN_DECLS
-
-G_DEFINE_TYPE(GtkViewsWindow, gtk_views_window, GTK_TYPE_WINDOW)
-
-static void gtk_views_window_move_focus(GtkWindow* window,
- GtkDirectionType dir) {
- views::Widget* widget = views::Widget::GetWidgetForNativeWindow(window);
- views::FocusManager* focus_manager =
- widget ? widget->GetFocusManager() : NULL;
- if (focus_manager) {
- GdkEvent* key = gtk_get_current_event();
- if (key && key->type == GDK_KEY_PRESS) {
- views::KeyEvent key_event(key);
- focus_manager->OnKeyEvent(key_event);
- }
- } else if (GTK_WINDOW_CLASS(gtk_views_window_parent_class)->move_focus) {
- GTK_WINDOW_CLASS(gtk_views_window_parent_class)->move_focus(window, dir);
- }
-}
-
-static void gtk_views_window_class_init(
- GtkViewsWindowClass* views_window_class) {
- GtkWindowClass* window_class =
- reinterpret_cast<GtkWindowClass*>(views_window_class);
- window_class->move_focus = gtk_views_window_move_focus;
-}
-
-static void gtk_views_window_init(GtkViewsWindow* window) {
-}
-
-GtkWidget* gtk_views_window_new(GtkWindowType type) {
- return GTK_WIDGET(g_object_new(GTK_TYPE_VIEWS_WINDOW, "type", type, NULL));
-}
-
-G_END_DECLS
« no previous file with comments | « ui/views/widget/gtk_views_window.h ('k') | ui/views/widget/native_widget_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698