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

Side by Side Diff: ui/gfx/gtk_preserve_window.h

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 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 <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 #include <gtk/gtk.h> 10 #include <gtk/gtk.h>
11 11
12 #include "ui/ui_api.h"
13
12 // 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
13 // when unrealized. GtkPreserveWindow allows overrides this 15 // when unrealized. GtkPreserveWindow allows overrides this
14 // behaviour. When preserve is set (via gtk_preserve_window_set_preserve), 16 // behaviour. When preserve is set (via gtk_preserve_window_set_preserve),
15 // the X window is only destroyed when the widget is destroyed. 17 // the X window is only destroyed when the widget is destroyed.
16 18
17 G_BEGIN_DECLS 19 G_BEGIN_DECLS
18 20
19 #define GTK_TYPE_PRESERVE_WINDOW \ 21 #define GTK_TYPE_PRESERVE_WINDOW \
20 (gtk_preserve_window_get_type()) 22 (gtk_preserve_window_get_type())
21 #define GTK_PRESERVE_WINDOW(obj) \ 23 #define GTK_PRESERVE_WINDOW(obj) \
(...skipping 16 matching lines...) Expand all
38 struct _GtkPreserveWindow { 40 struct _GtkPreserveWindow {
39 // Parent class. 41 // Parent class.
40 GtkFixed fixed; 42 GtkFixed fixed;
41 }; 43 };
42 44
43 struct _GtkPreserveWindowClass { 45 struct _GtkPreserveWindowClass {
44 GtkFixedClass parent_class; 46 GtkFixedClass parent_class;
45 }; 47 };
46 48
47 GType gtk_preserve_window_get_type() G_GNUC_CONST; 49 GType gtk_preserve_window_get_type() G_GNUC_CONST;
48 GtkWidget* gtk_preserve_window_new(); 50 UI_API GtkWidget* gtk_preserve_window_new();
49 51
50 // Whether or not we should preserve associated windows as the widget 52 // Whether or not we should preserve associated windows as the widget
51 // is realized or unrealized. 53 // is realized or unrealized.
52 gboolean gtk_preserve_window_get_preserve(GtkPreserveWindow* widget); 54 gboolean gtk_preserve_window_get_preserve(GtkPreserveWindow* widget);
53 void gtk_preserve_window_set_preserve(GtkPreserveWindow* widget, 55 void gtk_preserve_window_set_preserve(GtkPreserveWindow* widget,
54 gboolean value); 56 gboolean value);
55 57
56 // Whether or not someone else will gdk_window_resize the GdkWindow associated 58 // Whether or not someone else will gdk_window_resize the GdkWindow associated
57 // with this widget (needed by the GPU process to synchronize resizing 59 // with this widget (needed by the GPU process to synchronize resizing
58 // with swapped between front and back buffer). 60 // with swapped between front and back buffer).
59 void gtk_preserve_window_delegate_resize(GtkPreserveWindow* widget, 61 UI_API void gtk_preserve_window_delegate_resize(GtkPreserveWindow* widget,
60 gboolean delegate); 62 gboolean delegate);
61 63
62 G_END_DECLS 64 G_END_DECLS
63 65
64 #endif // UI_GFX_GTK_PRESERVE_WINDOW_H_ 66 #endif // UI_GFX_GTK_PRESERVE_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/gfx/gtk_native_view_id_manager.h ('k') | ui/gfx/gtk_util.h » ('j') | ui/ui.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698