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

Unified Diff: ui/base/base_window.h

Issue 1135693006: Fix X11DesktopHandler::ActivateWindow on Unity for known user gestures Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/base/base_window.h
diff --git a/ui/base/base_window.h b/ui/base/base_window.h
index 1819405fb4b9b065689a4f1ee4dabdbc5e4f2597..fe81e88618ae4b3d5ac1e59114c8d417945bbc6c 100644
--- a/ui/base/base_window.h
+++ b/ui/base/base_window.h
@@ -54,6 +54,8 @@ class UI_BASE_EXPORT BaseWindow {
// Shows the window, or activates it if it's already visible.
virtual void Show() = 0;
+ // Like Show(), but some window managers will give this higher priority.
+ virtual void ShowForUserGesture();
// Hides the window.
virtual void Hide() = 0;
@@ -69,6 +71,8 @@ class UI_BASE_EXPORT BaseWindow {
// Activates (brings to front) the window. Restores the window from minimized
// state if necessary.
virtual void Activate() = 0;
+ // Like Activate(), but some window managers will give this higher priority.
+ virtual void ActivateForUserGesture();
// Deactivates the window, making the next window in the Z order the active
// window.

Powered by Google App Engine
This is Rietveld 408576698