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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_util.cc

Issue 1624793002: Make File-Picker modal on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [WIP] use of scoped_ptr<ScopedHandle> Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698