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

Unified 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: 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
« no previous file with comments | « no previous file | ash/wm/overview/window_selector_window.cc » ('j') | ash/wm/overview/window_selector_window.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector_window.h
diff --git a/ash/wm/overview/window_selector_window.h b/ash/wm/overview/window_selector_window.h
index 0c6d7b84ff013ee381f130882a172e13b18b7a48..1e1c68f44c03231011f89ec0828d76f8eba33c18 100644
--- a/ash/wm/overview/window_selector_window.h
+++ b/ash/wm/overview/window_selector_window.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/rect.h"
#include "ui/views/controls/button/button.h"
+#include "ui/views/controls/label.h"
tdanderson 2014/04/09 20:35:17 This #include can be moved to the .cc file.
namespace aura {
class Window;
@@ -47,17 +48,30 @@ class WindowSelectorWindow : public WindowSelectorItem,
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
+ // Foreground label color. Right now it's white
+ const static int kLabelColor = 0xFFFFFFFF;
tdanderson 2014/04/09 20:35:17 static const instead of const static. Also, decla
+
+ // Background label color. Right now it's black.
+ const static int kLabelBackground = 0x000000;
+
private:
// Creates the close button window if it does not exist and updates the bounds
// to match the window selector item.
void UpdateCloseButtonBounds();
+ // IDEM UpdateCloseButtonBounds, creates a label to display under the window
+ // and/or updates the bounds accordingly
+ void UpdateWindowLabels(const gfx::Rect& target_bounds);
+
// The window with a scoped transform represented by this selector item.
ScopedTransformOverviewWindow transform_window_;
// An easy to access close button for the window in this item.
scoped_ptr<views::Widget> close_button_;
+ // Label under the window with the tab name.
+ scoped_ptr<views::Widget> window_label_;
+
DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow);
};
« 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