Chromium Code Reviews| 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_WINDOW_H_ | 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ |
| 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ | 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ |
| 7 | 7 |
| 8 #include "ash/wm/overview/scoped_transform_overview_window.h" | 8 #include "ash/wm/overview/scoped_transform_overview_window.h" |
| 9 #include "ash/wm/overview/window_selector_item.h" | 9 #include "ash/wm/overview/window_selector_item.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 | 45 |
| 46 // views::ButtonListener: | 46 // views::ButtonListener: |
| 47 virtual void ButtonPressed(views::Button* sender, | 47 virtual void ButtonPressed(views::Button* sender, |
| 48 const ui::Event& event) OVERRIDE; | 48 const ui::Event& event) OVERRIDE; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // Creates the close button window if it does not exist and updates the bounds | 51 // Creates the close button window if it does not exist and updates the bounds |
| 52 // to match the window selector item. | 52 // to match the window selector item. |
| 53 void UpdateCloseButtonBounds(); | 53 void UpdateCloseButtonBounds(); |
| 54 | 54 |
| 55 // IDEM UpdateCloseButtonBounds, creates a label to display under the window | |
|
flackr
2014/04/10 15:03:05
IDEM?
| |
| 56 // and/or updates the bounds accordingly | |
| 57 void UpdateWindowLabels(const gfx::Rect& target_bounds); | |
| 58 | |
| 55 // The window with a scoped transform represented by this selector item. | 59 // The window with a scoped transform represented by this selector item. |
| 56 ScopedTransformOverviewWindow transform_window_; | 60 ScopedTransformOverviewWindow transform_window_; |
| 57 | 61 |
| 58 // An easy to access close button for the window in this item. | 62 // An easy to access close button for the window in this item. |
| 59 scoped_ptr<views::Widget> close_button_; | 63 scoped_ptr<views::Widget> close_button_; |
| 60 | 64 |
| 65 // Label under the window with the tab name. | |
| 66 scoped_ptr<views::Widget> window_label_; | |
| 67 | |
| 61 DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow); | 68 DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow); |
| 62 }; | 69 }; |
| 63 | 70 |
| 64 } // namespace ash | 71 } // namespace ash |
| 65 | 72 |
| 66 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ | 73 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ |
| OLD | NEW |