Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_AURA_WINDOW_H_ | 5 #ifndef UI_AURA_WINDOW_H_ |
| 6 #define UI_AURA_WINDOW_H_ | 6 #define UI_AURA_WINDOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 // window_types.h or a user defined value. | 61 // window_types.h or a user defined value. |
| 62 int type() const { return type_; } | 62 int type() const { return type_; } |
| 63 void SetType(int type); | 63 void SetType(int type); |
| 64 | 64 |
| 65 int id() const { return id_; } | 65 int id() const { return id_; } |
| 66 void set_id(int id) { id_ = id; } | 66 void set_id(int id) { id_ = id; } |
| 67 | 67 |
| 68 const std::string& name() const { return name_; } | 68 const std::string& name() const { return name_; } |
| 69 void set_name(const std::string& name) { name_ = name; } | 69 void set_name(const std::string& name) { name_ = name; } |
| 70 | 70 |
| 71 const string16& tooltip() const { return tooltip_; } | |
|
Ben Goodger (Google)
2011/10/25 22:24:45
Seems like at the shell level we are always queryi
varunjain
2011/10/25 22:35:05
I am not sure I completely understand. We never qu
| |
| 72 void set_tooltip(const string16& tooltip) { tooltip_ = tooltip; } | |
| 73 | |
| 71 ui::Layer* layer() { return layer_.get(); } | 74 ui::Layer* layer() { return layer_.get(); } |
| 72 const ui::Layer* layer() const { return layer_.get(); } | 75 const ui::Layer* layer() const { return layer_.get(); } |
| 73 | 76 |
| 74 WindowDelegate* delegate() { return delegate_; } | 77 WindowDelegate* delegate() { return delegate_; } |
| 75 | 78 |
| 76 const gfx::Rect& bounds() const; | 79 const gfx::Rect& bounds() const; |
| 77 | 80 |
| 78 Window* parent() { return parent_; } | 81 Window* parent() { return parent_; } |
| 79 const Window* parent() const { return parent_; } | 82 const Window* parent() const { return parent_; } |
| 80 | 83 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 311 | 314 |
| 312 // The Window's parent. | 315 // The Window's parent. |
| 313 Window* parent_; | 316 Window* parent_; |
| 314 | 317 |
| 315 // Child windows. Topmost is last. | 318 // Child windows. Topmost is last. |
| 316 Windows children_; | 319 Windows children_; |
| 317 | 320 |
| 318 int id_; | 321 int id_; |
| 319 std::string name_; | 322 std::string name_; |
| 320 | 323 |
| 324 string16 tooltip_; | |
| 325 | |
| 321 scoped_ptr<EventFilter> event_filter_; | 326 scoped_ptr<EventFilter> event_filter_; |
| 322 scoped_ptr<LayoutManager> layout_manager_; | 327 scoped_ptr<LayoutManager> layout_manager_; |
| 323 | 328 |
| 324 void* user_data_; | 329 void* user_data_; |
| 325 | 330 |
| 326 // When true, events are not sent to windows behind this one in the z-order, | 331 // When true, events are not sent to windows behind this one in the z-order, |
| 327 // provided this window has children. See set_stops_event_propagation(). | 332 // provided this window has children. See set_stops_event_propagation(). |
| 328 bool stops_event_propagation_; | 333 bool stops_event_propagation_; |
| 329 | 334 |
| 330 ObserverList<WindowObserver> observers_; | 335 ObserverList<WindowObserver> observers_; |
| 331 | 336 |
| 332 DISALLOW_COPY_AND_ASSIGN(Window); | 337 DISALLOW_COPY_AND_ASSIGN(Window); |
| 333 }; | 338 }; |
| 334 | 339 |
| 335 } // namespace aura | 340 } // namespace aura |
| 336 | 341 |
| 337 #endif // UI_AURA_WINDOW_H_ | 342 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |