OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |