diff options
Diffstat (limited to 'views/window/window_gtk.h')
-rw-r--r-- | views/window/window_gtk.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/window/window_gtk.h b/views/window/window_gtk.h index 865ac81..fffa6cb 100644 --- a/views/window/window_gtk.h +++ b/views/window/window_gtk.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -69,6 +69,12 @@ class WindowGtk : public WidgetGtk, public Window { GdkEventWindowState* event); virtual gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event); + // Gets the WindowGtk in the userdata section of the widget. + static WindowGtk* GetWindowForNative(GtkWidget* widget); + + // Sets the WindowGtk in the userdata section of the widget. + static void SetWindowForNative(GtkWidget* widget, WindowGtk* window); + protected: // For the constructor. friend class Window; |