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

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: Starting again from design doc Created 6 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 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 views::Widget* window_label() const { return window_label_.get(); }
76
75 const gfx::Rect& bounds() { return bounds_; } 77 const gfx::Rect& bounds() { return bounds_; }
76 const gfx::Rect& target_bounds() { return target_bounds_; } 78 const gfx::Rect& target_bounds() { return target_bounds_; }
77 79
78 protected: 80 protected:
79 // Sets the bounds of this selector item to |target_bounds| in |root_window|. 81 // Sets the bounds of this selector item to |target_bounds| in |root_window|.
80 // If |animate| the windows are animated from their current location. 82 // If |animate| the windows are animated from their current location.
81 virtual void SetItemBounds(aura::Window* root_window, 83 virtual void SetItemBounds(aura::Window* root_window,
82 const gfx::Rect& target_bounds, 84 const gfx::Rect& target_bounds,
83 bool animate) = 0; 85 bool animate) = 0;
84 86
(...skipping 25 matching lines...) Expand all
110 112
111 // Label under the window displaying its active tab name. 113 // Label under the window displaying its active tab name.
112 scoped_ptr<views::Widget> window_label_; 114 scoped_ptr<views::Widget> window_label_;
113 115
114 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); 116 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem);
115 }; 117 };
116 118
117 } // namespace ash 119 } // namespace ash
118 120
119 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ 121 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698