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/wm/overview/window_selector_item.h

Issue 251103005: Added arrow key navigation to Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed rob's comments, clang warnings. Created 6 years, 6 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_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Sets the bounds of this window selector item to |target_bounds| in the 65 // Sets the bounds of this window selector item to |target_bounds| in the
66 // |root_window| root window. 66 // |root_window| root window.
67 void SetBounds(aura::Window* root_window, 67 void SetBounds(aura::Window* root_window,
68 const gfx::Rect& target_bounds, 68 const gfx::Rect& target_bounds,
69 bool animate); 69 bool animate);
70 70
71 // Recomputes the positions for the windows in this selection item. This is 71 // Recomputes the positions for the windows in this selection item. This is
72 // dispatched when the bounds of a window change. 72 // dispatched when the bounds of a window change.
73 void RecomputeWindowTransforms(); 73 void RecomputeWindowTransforms();
74 74
75 // Sends an a11y focus alert so that, if chromevox is enabled, the window
76 // label is read.
77 void SendFocusAlert() const;
78
75 const gfx::Rect& bounds() { return bounds_; } 79 const gfx::Rect& bounds() { return bounds_; }
76 const gfx::Rect& target_bounds() { return target_bounds_; } 80 const gfx::Rect& target_bounds() { return target_bounds_; }
77 81
78 protected: 82 protected:
79 // Sets the bounds of this selector's items to |target_bounds| in 83 // Sets the bounds of this selector's items to |target_bounds| in
80 // |root_window|. If |animate| the windows are animated from their current 84 // |root_window|. If |animate| the windows are animated from their current
81 // location. 85 // location.
82 virtual void SetItemBounds(aura::Window* root_window, 86 virtual void SetItemBounds(aura::Window* root_window,
83 const gfx::Rect& target_bounds, 87 const gfx::Rect& target_bounds,
84 bool animate) = 0; 88 bool animate) = 0;
(...skipping 30 matching lines...) Expand all
115 // Transparent window on top of the real windows in the overview that 119 // Transparent window on top of the real windows in the overview that
116 // activates them on click or tap. 120 // activates them on click or tap.
117 scoped_ptr<TransparentActivateWindowButton> activate_window_button_; 121 scoped_ptr<TransparentActivateWindowButton> activate_window_button_;
118 122
119 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); 123 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem);
120 }; 124 };
121 125
122 } // namespace ash 126 } // namespace ash
123 127
124 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ 128 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698