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

Side by Side Diff: ash/wm/overview/window_selector_window.h

Issue 231643002: Added labels under the windows in OverviewMode displaying their current name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some issues regarding code style Created 6 years, 8 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_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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/overview/window_selector_window.cc » ('j') | ash/wm/overview/window_selector_window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698