| Index: chrome/browser/ui/libgtk2ui/gtk2_util.cc
|
| diff --git a/chrome/browser/ui/libgtk2ui/gtk2_util.cc b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
|
| index cd72e9841b4c014cc45a1153eb6382e12d684163..5603f7a5a7e5031f092972c8068049f9bcaffbc8 100644
|
| --- a/chrome/browser/ui/libgtk2ui/gtk2_util.cc
|
| +++ b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
|
| @@ -23,6 +23,8 @@
|
| namespace {
|
|
|
| const char kAuraTransientParent[] = "aura-transient-parent";
|
| +const char kDesktopWindowTreeHost[] = "desktop-window-tree-Host";
|
| +
|
|
|
| void CommonInitFromCommandLine(const base::CommandLine& command_line,
|
| void (*init_func)(gint*, gchar***)) {
|
| @@ -140,4 +142,14 @@ void ClearAuraTransientParent(GtkWidget* dialog) {
|
| g_object_set_data(G_OBJECT(dialog), kAuraTransientParent, NULL);
|
| }
|
|
|
| +void SetDesktopWindowTreeHost(GtkWidget* dialog,
|
| + views::DesktopWindowTreeHostX11* host) {
|
| + g_object_set_data(G_OBJECT(dialog), kDesktopWindowTreeHost, host);
|
| +}
|
| +
|
| +views::DesktopWindowTreeHostX11* GetDesktopWindowTreeHost(GtkWidget* dialog) {
|
| + return reinterpret_cast<views::DesktopWindowTreeHostX11*>(
|
| + g_object_get_data(G_OBJECT(dialog), kDesktopWindowTreeHost));
|
| +}
|
| +
|
| } // namespace libgtk2ui
|
|
|