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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host.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_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/window_event_dispatcher.h" 9 #include "ui/aura/window_event_dispatcher.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; 89 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0;
90 virtual gfx::Rect GetRestoredBounds() const = 0; 90 virtual gfx::Rect GetRestoredBounds() const = 0;
91 91
92 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; 92 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0;
93 93
94 // Sets the shape of the root window. If |native_region| is NULL then the 94 // Sets the shape of the root window. If |native_region| is NULL then the
95 // window reverts to rectangular. Takes ownership of |native_region|. 95 // window reverts to rectangular. Takes ownership of |native_region|.
96 virtual void SetShape(gfx::NativeRegion native_region) = 0; 96 virtual void SetShape(gfx::NativeRegion native_region) = 0;
97 97
98 virtual void Activate() = 0; 98 virtual void Activate() = 0;
99 virtual void ActivateForUserGesture() = 0;
99 virtual void Deactivate() = 0; 100 virtual void Deactivate() = 0;
100 virtual bool IsActive() const = 0; 101 virtual bool IsActive() const = 0;
101 virtual void Maximize() = 0; 102 virtual void Maximize() = 0;
102 virtual void Minimize() = 0; 103 virtual void Minimize() = 0;
103 virtual void Restore() = 0; 104 virtual void Restore() = 0;
104 virtual bool IsMaximized() const = 0; 105 virtual bool IsMaximized() const = 0;
105 virtual bool IsMinimized() const = 0; 106 virtual bool IsMinimized() const = 0;
106 107
107 virtual bool HasCapture() const = 0; 108 virtual bool HasCapture() const = 0;
108 109
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Returns true if the Widget supports translucency. 158 // Returns true if the Widget supports translucency.
158 virtual bool IsTranslucentWindowOpacitySupported() const = 0; 159 virtual bool IsTranslucentWindowOpacitySupported() const = 0;
159 160
160 // Called when the window's size constraints change. 161 // Called when the window's size constraints change.
161 virtual void SizeConstraintsChanged() = 0; 162 virtual void SizeConstraintsChanged() = 0;
162 }; 163 };
163 164
164 } // namespace views 165 } // namespace views
165 166
166 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 167 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698