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

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

Issue 2131603004: [ash-md] Makes Ctrl+W accelerator close a selected window in overview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Makes Ctrl+W accelerator close a selected window in overview mode (UMA) Created 4 years, 5 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 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_WINDOW_SELECTOR_ITEM_H_ 5 #ifndef ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ 6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Recomputes the positions for the windows in this selection item. This is 95 // Recomputes the positions for the windows in this selection item. This is
96 // dispatched when the bounds of a window change. 96 // dispatched when the bounds of a window change.
97 void RecomputeWindowTransforms(); 97 void RecomputeWindowTransforms();
98 98
99 // Sends an accessibility event indicating that this window became selected 99 // Sends an accessibility event indicating that this window became selected
100 // so that it's highlighted and announced if accessibility features are 100 // so that it's highlighted and announced if accessibility features are
101 // enabled. 101 // enabled.
102 void SendAccessibleSelectionEvent(); 102 void SendAccessibleSelectionEvent();
103 103
104 // Closes |transform_window_|.
105 void CloseWindow();
106
104 // Sets if the item is dimmed in the overview. Changing the value will also 107 // Sets if the item is dimmed in the overview. Changing the value will also
105 // change the visibility of the transform windows. 108 // change the visibility of the transform windows.
106 void SetDimmed(bool dimmed); 109 void SetDimmed(bool dimmed);
107 bool dimmed() const { return dimmed_; } 110 bool dimmed() const { return dimmed_; }
108 111
109 const gfx::Rect& target_bounds() const { return target_bounds_; } 112 const gfx::Rect& target_bounds() const { return target_bounds_; }
110 113
111 // views::ButtonListener: 114 // views::ButtonListener:
112 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 115 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
113 116
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Pointer to the WindowSelector that owns the WindowGrid containing |this|. 195 // Pointer to the WindowSelector that owns the WindowGrid containing |this|.
193 // Guaranteed to be non-null for the lifetime of |this|. 196 // Guaranteed to be non-null for the lifetime of |this|.
194 WindowSelector* window_selector_; 197 WindowSelector* window_selector_;
195 198
196 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); 199 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem);
197 }; 200 };
198 201
199 } // namespace ash 202 } // namespace ash
200 203
201 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ 204 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
OLDNEW
« no previous file with comments | « ash/common/wm/overview/window_selector.cc ('k') | ash/common/wm/overview/window_selector_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698