diff options
Diffstat (limited to 'ui/aura/window.h')
-rw-r--r-- | ui/aura/window.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/aura/window.h b/ui/aura/window.h index 9e1f05f..ae0ec6f 100644 --- a/ui/aura/window.h +++ b/ui/aura/window.h @@ -64,7 +64,7 @@ class AURA_EXPORT Window : public ui::LayerDelegate { void set_id(int id) { id_ = id; } const std::string& name() const { return name_; } - void set_name(const std::string& name) { name_ = name; } + void SetName(const std::string& name); const string16 title() const { return title_; } void set_title(const string16& title) { title_ = title; } @@ -297,6 +297,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate { // Overridden from ui::LayerDelegate: virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; + // Updates the layer name with a name based on the window's name and id. + void UpdateLayerName(const std::string& name); + WindowType type_; WindowDelegate* delegate_; |