OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 GFX_GTK_PRESERVE_WINDOW_H_ | 5 #ifndef GFX_GTK_PRESERVE_WINDOW_H_ |
6 #define GFX_GTK_PRESERVE_WINDOW_H_ | 6 #define GFX_GTK_PRESERVE_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
10 #include <gtk/gtk.h> | 10 #include <gtk/gtk.h> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 GType gtk_preserve_window_get_type() G_GNUC_CONST; | 47 GType gtk_preserve_window_get_type() G_GNUC_CONST; |
48 GtkWidget* gtk_preserve_window_new(); | 48 GtkWidget* gtk_preserve_window_new(); |
49 | 49 |
50 // Whether or not we should preserve associated windows as the widget | 50 // Whether or not we should preserve associated windows as the widget |
51 // is realized or unrealized. | 51 // is realized or unrealized. |
52 gboolean gtk_preserve_window_get_preserve(GtkPreserveWindow* widget); | 52 gboolean gtk_preserve_window_get_preserve(GtkPreserveWindow* widget); |
53 void gtk_preserve_window_set_preserve(GtkPreserveWindow* widget, | 53 void gtk_preserve_window_set_preserve(GtkPreserveWindow* widget, |
54 gboolean value); | 54 gboolean value); |
55 | 55 |
| 56 // Whether or not someone else will gdk_window_resize the GdkWindow associated |
| 57 // with this widget (needed by the GPU process to synchronize resizing |
| 58 // with swapped between front and back buffer). |
| 59 void gtk_preserve_window_delegate_resize(GtkPreserveWindow* widget, |
| 60 gboolean delegate); |
| 61 |
56 G_END_DECLS | 62 G_END_DECLS |
57 | 63 |
58 #endif // GFX_GTK_PRESERVE_WINDOW_H_ | 64 #endif // GFX_GTK_PRESERVE_WINDOW_H_ |
OLD | NEW |