Index: ui/aura/window.h |
diff --git a/ui/aura/window.h b/ui/aura/window.h |
index 485bcb41b5ea3b6a7df52550b665eb843546f619..537e2248c93f47500505e488ea2e8d4a0bcf40d4 100644 |
--- a/ui/aura/window.h |
+++ b/ui/aura/window.h |
@@ -70,7 +70,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; } |
@@ -303,6 +303,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_; |