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

Unified Diff: chrome/browser/ui/gtk/extensions/native_app_window_gtk.h

Issue 18741006: [GTK] Report isMinimized and correctly restore app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit as comments. Created 7 years, 5 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/gtk/extensions/native_app_window_gtk.h
diff --git a/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h b/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
index 2b71243778cd78b8d359be9e9813538f2a6f9ad3..b05c96114837ea58aa5999e0ea2cb9641a665a55 100644
--- a/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
+++ b/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
@@ -15,6 +15,7 @@
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/base/gtk/gtk_signal.h"
#include "ui/base/x/active_window_watcher_x_observer.h"
+#include "ui/base/x/x11_atom_cache.h"
#include "ui/gfx/rect.h"
class ExtensionKeybindingRegistryGtk;
@@ -102,6 +103,9 @@ class NativeAppWindowGtk : public NativeAppWindow,
GdkEventMotion*);
CHROMEGTK_CALLBACK_1(NativeAppWindowGtk, gboolean, OnButtonPress,
GdkEventButton*);
+ // Callback for PropertyChange XEvents.
+ CHROMEG_CALLBACK_1(NativeAppWindowGtk, GdkFilterReturn,
+ OnXEvent, GdkXEvent*, GdkEvent*);
void OnConfigureDebounced();
@@ -155,6 +159,8 @@ class NativeAppWindowGtk : public NativeAppWindow,
// updating its dimensions.
ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_;
+ ui::X11AtomCache atom_cache_;
+
DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk);
};

Powered by Google App Engine
This is Rietveld 408576698