| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_GFX_GTK_PRESERVE_WINDOW_H_ | 5 #ifndef UI_GFX_GTK_PRESERVE_WINDOW_H_ |
| 6 #define UI_GFX_GTK_PRESERVE_WINDOW_H_ | 6 #define UI_GFX_GTK_PRESERVE_WINDOW_H_ |
| 7 | 7 |
| 8 #include <atk/atk.h> | 8 #include <atk/atk.h> |
| 9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
| 10 #include <gtk/gtk.h> | 10 #include <gtk/gtk.h> |
| 11 | 11 |
| 12 #include "ui/base/ui_export.h" | 12 #include "ui/gfx/gfx_export.h" |
| 13 | 13 |
| 14 // GtkFixed creates an X window when realized and destroys an X window | 14 // GtkFixed creates an X window when realized and destroys an X window |
| 15 // when unrealized. GtkPreserveWindow allows overrides this | 15 // when unrealized. GtkPreserveWindow allows overrides this |
| 16 // behaviour. When preserve is set (via gtk_preserve_window_set_preserve), | 16 // behaviour. When preserve is set (via gtk_preserve_window_set_preserve), |
| 17 // the X window is only destroyed when the widget is destroyed. | 17 // the X window is only destroyed when the widget is destroyed. |
| 18 | 18 |
| 19 G_BEGIN_DECLS | 19 G_BEGIN_DECLS |
| 20 | 20 |
| 21 #define GTK_TYPE_PRESERVE_WINDOW \ | 21 #define GTK_TYPE_PRESERVE_WINDOW \ |
| 22 (gtk_preserve_window_get_type()) | 22 (gtk_preserve_window_get_type()) |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // are made on this widget. The parameter |userdata| will be passed to the | 65 // are made on this widget. The parameter |userdata| will be passed to the |
| 66 // factory function. | 66 // factory function. |
| 67 UI_EXPORT void gtk_preserve_window_set_accessible_factory( | 67 UI_EXPORT void gtk_preserve_window_set_accessible_factory( |
| 68 GtkPreserveWindow* widget, | 68 GtkPreserveWindow* widget, |
| 69 AtkObject* (*factory)(void* userdata), | 69 AtkObject* (*factory)(void* userdata), |
| 70 gpointer userdata); | 70 gpointer userdata); |
| 71 | 71 |
| 72 G_END_DECLS | 72 G_END_DECLS |
| 73 | 73 |
| 74 #endif // UI_GFX_GTK_PRESERVE_WINDOW_H_ | 74 #endif // UI_GFX_GTK_PRESERVE_WINDOW_H_ |
| OLD | NEW |