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 // Returns the label widget | |
tdanderson
2014/04/29 14:46:27
. at end of comment
Nina
2014/04/29 18:31:40
Done.
| |
76 views::Widget* get_window_label(); | |
tdanderson
2014/04/29 14:46:27
Call this just window_label() instead of get_windo
Nina
2014/04/29 18:31:40
Done.
| |
77 | |
75 const gfx::Rect& bounds() { return bounds_; } | 78 const gfx::Rect& bounds() { return bounds_; } |
76 const gfx::Rect& target_bounds() { return target_bounds_; } | 79 const gfx::Rect& target_bounds() { return target_bounds_; } |
77 | 80 |
78 protected: | 81 protected: |
79 // Sets the bounds of this selector item to |target_bounds| in |root_window|. | 82 // Sets the bounds of this selector item to |target_bounds| in |root_window|. |
80 // If |animate| the windows are animated from their current location. | 83 // If |animate| the windows are animated from their current location. |
81 virtual void SetItemBounds(aura::Window* root_window, | 84 virtual void SetItemBounds(aura::Window* root_window, |
82 const gfx::Rect& target_bounds, | 85 const gfx::Rect& target_bounds, |
83 bool animate) = 0; | 86 bool animate) = 0; |
84 | 87 |
(...skipping 25 matching lines...) Expand all Loading... | |
110 | 113 |
111 // Label under the window displaying its active tab name. | 114 // Label under the window displaying its active tab name. |
112 scoped_ptr<views::Widget> window_label_; | 115 scoped_ptr<views::Widget> window_label_; |
113 | 116 |
114 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); | 117 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); |
115 }; | 118 }; |
116 | 119 |
117 } // namespace ash | 120 } // namespace ash |
118 | 121 |
119 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ | 122 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ |
OLD | NEW |