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

Unified Diff: ash/wm/overview/window_selector_item.h

Issue 331643004: Update the window labels if they change in overview mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Rob's nits Created 6 years, 6 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 ac57266c12266fba0482d92dc692c8e82dbdb17a..9f1e021991472d05d7de8dd9284ec35090dc5e32 100644
--- a/ash/wm/overview/window_selector_item.h
+++ b/ash/wm/overview/window_selector_item.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "ui/aura/window_observer.h"
#include "ui/gfx/rect.h"
#include "ui/views/controls/button/button.h"
@@ -24,7 +25,8 @@ class TransparentActivateWindowButton;
// This class represents an item in overview mode. An item can have one or more
// windows, of which only one can be activated by keyboard (i.e. alt+tab) but
// any can be selected with a pointer (touch or mouse).
-class WindowSelectorItem : public views::ButtonListener {
+class WindowSelectorItem : public views::ButtonListener,
+ public aura::WindowObserver {
public:
WindowSelectorItem();
virtual ~WindowSelectorItem();
@@ -83,6 +85,10 @@ class WindowSelectorItem : public views::ButtonListener {
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
+ // aura::WindowObserver:
+ virtual void OnWindowTitleChanged(aura::Window* window,
+ const base::string16& title) OVERRIDE;
+
protected:
// Sets the bounds of this selector's items to |target_bounds| in
// |root_window|. If |animate| the windows are animated from their current

Powered by Google App Engine
This is Rietveld 408576698