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

Unified Diff: ash/wm/overview/window_selector_item.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: Added blurred shadows to labels 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/overview/window_selector_item.h
diff --git a/ash/wm/overview/window_selector_item.h b/ash/wm/overview/window_selector_item.h
index eedf3e1f9153c56f33d0073018cb147bbf2e091a..4e50b0b60cdf44eae29206fca64adace8981bafd 100644
--- a/ash/wm/overview/window_selector_item.h
+++ b/ash/wm/overview/window_selector_item.h
@@ -6,11 +6,16 @@
#define ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/strings/string16.h"
#include "ui/gfx/rect.h"
namespace aura {
class Window;
}
tdanderson 2014/04/14 16:58:39 newline after line 15
Nina 2014/04/14 17:59:17 Done.
+namespace views {
+class Widget;
+}
namespace ash {
@@ -74,6 +79,12 @@ class WindowSelectorItem {
// Sets the bounds used by the selector item's windows.
void set_bounds(const gfx::Rect& bounds) { bounds_ = bounds; }
+ // Creates a label to display under the window selector item.
+ void UpdateWindowLabels(const gfx::Rect& target_bounds);
+
+ // Returns the label name.
+ virtual base::string16 GetLabelName() = 0;
+
private:
// The root window this item is being displayed on.
aura::Window* root_window_;
@@ -90,6 +101,9 @@ class WindowSelectorItem {
// a window layer for display on another monitor.
bool in_bounds_update_;
+ // Label under the window with the tab name.
tdanderson 2014/04/14 16:58:39 Specify this is the name of the window's active ta
Nina 2014/04/14 17:59:17 Done.
+ scoped_ptr<views::Widget> window_label_;
+
DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem);
};

Powered by Google App Engine
This is Rietveld 408576698