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

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

Issue 7569005: Rename UI_API to UI_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « ui/gfx/gtk_native_view_id_manager.h ('k') | ui/gfx/gtk_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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" 12 #include "ui/base/ui_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 17 matching lines...) Expand all
40 struct _GtkPreserveWindow { 40 struct _GtkPreserveWindow {
41 // Parent class. 41 // Parent class.
42 GtkFixed fixed; 42 GtkFixed fixed;
43 }; 43 };
44 44
45 struct _GtkPreserveWindowClass { 45 struct _GtkPreserveWindowClass {
46 GtkFixedClass parent_class; 46 GtkFixedClass parent_class;
47 }; 47 };
48 48
49 GType gtk_preserve_window_get_type() G_GNUC_CONST; 49 GType gtk_preserve_window_get_type() G_GNUC_CONST;
50 UI_API GtkWidget* gtk_preserve_window_new(); 50 UI_EXPORT GtkWidget* gtk_preserve_window_new();
51 51
52 // Whether or not we should preserve associated windows as the widget 52 // Whether or not we should preserve associated windows as the widget
53 // is realized or unrealized. 53 // is realized or unrealized.
54 gboolean gtk_preserve_window_get_preserve(GtkPreserveWindow* widget); 54 gboolean gtk_preserve_window_get_preserve(GtkPreserveWindow* widget);
55 void gtk_preserve_window_set_preserve(GtkPreserveWindow* widget, 55 void gtk_preserve_window_set_preserve(GtkPreserveWindow* widget,
56 gboolean value); 56 gboolean value);
57 57
58 // 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
59 // with this widget (needed by the GPU process to synchronize resizing 59 // with this widget (needed by the GPU process to synchronize resizing
60 // with swapped between front and back buffer). 60 // with swapped between front and back buffer).
61 UI_API void gtk_preserve_window_delegate_resize(GtkPreserveWindow* widget, 61 UI_EXPORT void gtk_preserve_window_delegate_resize(GtkPreserveWindow* widget,
62 gboolean delegate); 62 gboolean delegate);
63 63
64 G_END_DECLS 64 G_END_DECLS
65 65
66 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698