OLD | NEW |
1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <atk/atk.h> |
9 #include <gdk/gdk.h> | 10 #include <gdk/gdk.h> |
10 #include <gtk/gtk.h> | 11 #include <gtk/gtk.h> |
11 | 12 |
12 #include "ui/base/ui_export.h" | 13 #include "ui/base/ui_export.h" |
13 | 14 |
14 // GtkFixed creates an X window when realized and destroys an X window | 15 // GtkFixed creates an X window when realized and destroys an X window |
15 // when unrealized. GtkPreserveWindow allows overrides this | 16 // when unrealized. GtkPreserveWindow allows overrides this |
16 // behaviour. When preserve is set (via gtk_preserve_window_set_preserve), | 17 // behaviour. When preserve is set (via gtk_preserve_window_set_preserve), |
17 // the X window is only destroyed when the widget is destroyed. | 18 // the X window is only destroyed when the widget is destroyed. |
18 | 19 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 gboolean gtk_preserve_window_get_preserve(GtkPreserveWindow* widget); | 55 gboolean gtk_preserve_window_get_preserve(GtkPreserveWindow* widget); |
55 void gtk_preserve_window_set_preserve(GtkPreserveWindow* widget, | 56 void gtk_preserve_window_set_preserve(GtkPreserveWindow* widget, |
56 gboolean value); | 57 gboolean value); |
57 | 58 |
58 // Whether or not someone else will gdk_window_resize the GdkWindow associated | 59 // Whether or not someone else will gdk_window_resize the GdkWindow associated |
59 // with this widget (needed by the GPU process to synchronize resizing | 60 // with this widget (needed by the GPU process to synchronize resizing |
60 // with swapped between front and back buffer). | 61 // with swapped between front and back buffer). |
61 UI_EXPORT void gtk_preserve_window_delegate_resize(GtkPreserveWindow* widget, | 62 UI_EXPORT void gtk_preserve_window_delegate_resize(GtkPreserveWindow* widget, |
62 gboolean delegate); | 63 gboolean delegate); |
63 | 64 |
| 65 // Provide a function to return an AtkObject* when calls to get_accessible |
| 66 // are made on this widget. The parameter |userdata| will be passed to the |
| 67 // factory function. |
| 68 void gtk_preserve_window_set_accessible_factory( |
| 69 GtkPreserveWindow* widget, |
| 70 AtkObject* (*factory)(void* userdata), |
| 71 gpointer userdata); |
| 72 |
64 G_END_DECLS | 73 G_END_DECLS |
65 | 74 |
66 #endif // UI_GFX_GTK_PRESERVE_WINDOW_H_ | 75 #endif // UI_GFX_GTK_PRESERVE_WINDOW_H_ |
OLD | NEW |