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

Side by Side Diff: ui/views/widget/widget.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 // can_activate flag in the InitParams structure is set to true. 477 // can_activate flag in the InitParams structure is set to true.
478 virtual void Show(); 478 virtual void Show();
479 // Hides the widget. 479 // Hides the widget.
480 void Hide(); 480 void Hide();
481 481
482 // Like Show(), but does not activate the window. 482 // Like Show(), but does not activate the window.
483 void ShowInactive(); 483 void ShowInactive();
484 484
485 // Activates the widget, assuming it already exists and is visible. 485 // Activates the widget, assuming it already exists and is visible.
486 void Activate(); 486 void Activate();
487 // Like Activate(), but some window managers will give this higher priority.
488 void ActivateForUserGesture();
487 489
488 // Deactivates the widget, making the next window in the Z order the active 490 // Deactivates the widget, making the next window in the Z order the active
489 // window. 491 // window.
490 void Deactivate(); 492 void Deactivate();
491 493
492 // Returns whether the Widget is the currently active window. 494 // Returns whether the Widget is the currently active window.
493 virtual bool IsActive() const; 495 virtual bool IsActive() const;
494 496
495 // Prevents the window from being rendered as deactivated. This state is 497 // Prevents the window from being rendered as deactivated. This state is
496 // reset automatically as soon as the window becomes activated again. There is 498 // reset automatically as soon as the window becomes activated again. There is
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 bool movement_disabled_; 980 bool movement_disabled_;
979 981
980 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 982 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
981 983
982 DISALLOW_COPY_AND_ASSIGN(Widget); 984 DISALLOW_COPY_AND_ASSIGN(Widget);
983 }; 985 };
984 986
985 } // namespace views 987 } // namespace views
986 988
987 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 989 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698