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

Side by Side Diff: ash/common/wm/overview/scoped_transform_overview_window.h

Issue 2637403013: [ash-md] Makes sure that minimized windows can be activated in overview (Closed)
Patch Set: [ash-md] Makes sure that minimized windows can be activated in overview Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 5 #ifndef ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 WmWindow* window() const { return window_; } 135 WmWindow* window() const { return window_; }
136 136
137 // Closes the transient root of the window managed by |this|. 137 // Closes the transient root of the window managed by |this|.
138 void Close(); 138 void Close();
139 139
140 // Returns the window used to show the content in overview mdoe. 140 // Returns the window used to show the content in overview mdoe.
141 // For minmiezd window, this will be a window that hosts mirrored layers. 141 // For minmiezd window, this will be a window that hosts mirrored layers.
142 WmWindow* GetOverviewWindow() const; 142 WmWindow* GetOverviewWindow() const;
143 143
144 // Ensures that a window is visible by setting its opacity to 1.
145 void EnsureVisible();
146
144 // Returns the window created for minimized window, or nullptr 147 // Returns the window created for minimized window, or nullptr
145 // if it does not exit. 148 // if it does not exit.
146 WmWindow* GetOverviewWindowForMinimizedState() const; 149 WmWindow* GetOverviewWindowForMinimizedState() const;
147 150
148 // ui::EventHandler: 151 // ui::EventHandler:
149 void OnGestureEvent(ui::GestureEvent* event) override; 152 void OnGestureEvent(ui::GestureEvent* event) override;
150 void OnMouseEvent(ui::MouseEvent* event) override; 153 void OnMouseEvent(ui::MouseEvent* event) override;
151 154
152 private: 155 private:
153 friend class WindowSelectorTest; 156 friend class WindowSelectorTest;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 std::unique_ptr<views::Widget> minimized_widget_; 189 std::unique_ptr<views::Widget> minimized_widget_;
187 190
188 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_; 191 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_;
189 192
190 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); 193 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow);
191 }; 194 };
192 195
193 } // namespace ash 196 } // namespace ash
194 197
195 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 198 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698