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

Side by Side Diff: ui/base/gtk/gtk_expanded_container.h

Issue 7740003: content: Move gtk_expanded_container to ui/base/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and retry failing windows compile Created 9 years, 3 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 | « chrome/chrome_tests.gypi ('k') | ui/base/gtk/gtk_expanded_container.cc » ('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 CHROME_BROWSER_UI_GTK_GTK_EXPANDED_CONTAINER_H_ 5 #ifndef UI_BASE_GTK_GTK_EXPANDED_CONTAINER_H_
6 #define CHROME_BROWSER_UI_GTK_GTK_EXPANDED_CONTAINER_H_ 6 #define UI_BASE_GTK_GTK_EXPANDED_CONTAINER_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/base/ui_export.h"
13
12 // A specialized container derived from GtkFixed, which expands the size of its 14 // A specialized container derived from GtkFixed, which expands the size of its
13 // children to fill the container, in one or both directions. The usage of this 15 // children to fill the container, in one or both directions. The usage of this
14 // container is similar to GtkFixed. 16 // container is similar to GtkFixed.
15 // 17 //
16 // The "child-size-request" signal is optional, if you want to expand child 18 // The "child-size-request" signal is optional, if you want to expand child
17 // widgets to customized size other than the container's size. It should have 19 // widgets to customized size other than the container's size. It should have
18 // the following signature: 20 // the following signature:
19 // 21 //
20 // void (*child_size_request)(GtkExpandedContainer* container, 22 // void (*child_size_request)(GtkExpandedContainer* container,
21 // GtkWidget* child, 23 // GtkWidget* child,
(...skipping 27 matching lines...) Expand all
49 51
50 struct _GtkExpandedContainer { 52 struct _GtkExpandedContainer {
51 // Parent class. 53 // Parent class.
52 GtkFixed fixed; 54 GtkFixed fixed;
53 }; 55 };
54 56
55 struct _GtkExpandedContainerClass { 57 struct _GtkExpandedContainerClass {
56 GtkFixedClass parent_class; 58 GtkFixedClass parent_class;
57 }; 59 };
58 60
59 GType gtk_expanded_container_get_type() G_GNUC_CONST; 61 UI_EXPORT GType gtk_expanded_container_get_type() G_GNUC_CONST;
60 GtkWidget* gtk_expanded_container_new(); 62 UI_EXPORT GtkWidget* gtk_expanded_container_new();
61 void gtk_expanded_container_put(GtkExpandedContainer* container, 63 UI_EXPORT void gtk_expanded_container_put(GtkExpandedContainer* container,
62 GtkWidget* widget, gint x, gint y); 64 GtkWidget* widget, gint x, gint y);
63 void gtk_expanded_container_move(GtkExpandedContainer* container, 65 UI_EXPORT void gtk_expanded_container_move(GtkExpandedContainer* container,
64 GtkWidget* widget, gint x, gint y); 66 GtkWidget* widget, gint x, gint y);
65 void gtk_expanded_container_set_has_window(GtkExpandedContainer* container, 67 UI_EXPORT void gtk_expanded_container_set_has_window(
66 gboolean has_window); 68 GtkExpandedContainer* container,
67 gboolean gtk_expanded_container_get_has_window(GtkExpandedContainer* container); 69 gboolean has_window);
70 UI_EXPORT gboolean gtk_expanded_container_get_has_window(
71 GtkExpandedContainer* container);
68 72
69 G_END_DECLS 73 G_END_DECLS
70 74
71 #endif // CHROME_BROWSER_UI_GTK_GTK_EXPANDED_CONTAINER_H_ 75 #endif // UI_BASE_GTK_GTK_EXPANDED_CONTAINER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | ui/base/gtk/gtk_expanded_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698