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

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

Issue 7701012: content: Move gtk_floating_container to ui/base/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and test on views/chromeos 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 | « chrome/chrome_browser.gypi ('k') | ui/base/gtk/gtk_floating_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_FLOATING_CONTAINER_H_ 5 #ifndef UI_BASE_GTK_GTK_FLOATING_CONTAINER_H_
6 #define CHROME_BROWSER_UI_GTK_GTK_FLOATING_CONTAINER_H_ 6 #define UI_BASE_GTK_GTK_FLOATING_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, which is a cross between a GtkBin and a 14 // A specialized container, which is a cross between a GtkBin and a
13 // GtkFixed. This container dervies from GtkBin and the implementation of 15 // GtkFixed. This container dervies from GtkBin and the implementation of
14 // gtk_container_add() is the same: only one GtkWidget can be added through 16 // gtk_container_add() is the same: only one GtkWidget can be added through
15 // that interface. The GtkBin portion contains normal content and is given the 17 // that interface. The GtkBin portion contains normal content and is given the
16 // same allocation that this container has. 18 // same allocation that this container has.
17 // 19 //
18 // In addition, any number of widgets can be added through the 20 // In addition, any number of widgets can be added through the
19 // gtk_floating_container_add_floating() method, which provides functionality 21 // gtk_floating_container_add_floating() method, which provides functionality
20 // similar to a GtkFixed. Unlike a GtkFixed, coordinates are not set when you 22 // similar to a GtkFixed. Unlike a GtkFixed, coordinates are not set when you
21 // gtk_fixed_put(). The location of the floating widgets is determined while 23 // gtk_fixed_put(). The location of the floating widgets is determined while
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 GtkBinClass parent_class; 70 GtkBinClass parent_class;
69 }; 71 };
70 72
71 // Internal structure used to associate a widget and its x/y child properties. 73 // Internal structure used to associate a widget and its x/y child properties.
72 struct _GtkFloatingContainerChild { 74 struct _GtkFloatingContainerChild {
73 GtkWidget* widget; 75 GtkWidget* widget;
74 gint x; 76 gint x;
75 gint y; 77 gint y;
76 }; 78 };
77 79
78 GType gtk_floating_container_get_type() G_GNUC_CONST; 80 UI_EXPORT GType gtk_floating_container_get_type() G_GNUC_CONST;
79 GtkWidget* gtk_floating_container_new(); 81 UI_EXPORT GtkWidget* gtk_floating_container_new();
80 void gtk_floating_container_add_floating(GtkFloatingContainer* container, 82 UI_EXPORT void gtk_floating_container_add_floating(
81 GtkWidget* widget); 83 GtkFloatingContainer* container,
84 GtkWidget* widget);
82 // Use gtk_container_remove to remove all widgets; both widgets added with 85 // Use gtk_container_remove to remove all widgets; both widgets added with
83 // gtk_container_add() and gtk_floating_container_add_floating(). 86 // gtk_container_add() and gtk_floating_container_add_floating().
84 87
85 G_END_DECLS 88 G_END_DECLS
86 89
87 #endif // CHROME_BROWSER_UI_GTK_GTK_FLOATING_CONTAINER_H_ 90 #endif // UI_BASE_GTK_GTK_FLOATING_CONTAINER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ui/base/gtk/gtk_floating_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698