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

Unified Diff: ui/views/widget/desktop_aura/x11_desktop_handler.h

Issue 138903007: Fixes _NET_ACTIVE_WINDOW support check in order to not always return no. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aura_deactivate
Patch Set: fix views_unittests Created 6 years, 11 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: ui/views/widget/desktop_aura/x11_desktop_handler.h
diff --git a/ui/views/widget/desktop_aura/x11_desktop_handler.h b/ui/views/widget/desktop_aura/x11_desktop_handler.h
index 085a9e460957ad1a57b6087246a1af448ce1b98c..72651a394ec959cd08d62a2dd1e175540ea733b8 100644
--- a/ui/views/widget/desktop_aura/x11_desktop_handler.h
+++ b/ui/views/widget/desktop_aura/x11_desktop_handler.h
@@ -51,6 +51,12 @@ class VIEWS_EXPORT X11DesktopHandler : public base::MessagePumpDispatcher,
virtual void OnWindowInitialized(aura::Window* window) OVERRIDE;
virtual void OnWillDestroyEnv() OVERRIDE;
+ // Allows to override wm_supports_active_window_ value for tests. If the WM
+ // supports _NET_ACTIVE_WINDOW, activation is async otherwise it is sync.
+ void SetWMSupportsActiveWindowForTests(bool value) {
+ wm_supports_active_window_ = value;
+ }
+
private:
explicit X11DesktopHandler();
virtual ~X11DesktopHandler();
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_screen_x11_unittest.cc ('k') | ui/views/widget/desktop_aura/x11_desktop_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698