Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 352 | 352 |
| 353 // Overridden from ui::LayerDelegate: | 353 // Overridden from ui::LayerDelegate: |
| 354 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 354 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 355 | 355 |
| 356 #ifndef NDEBUG | 356 #ifndef NDEBUG |
| 357 // These methods are useful when debugging. | 357 // These methods are useful when debugging. |
| 358 std::string GetDebugInfo() const; | 358 std::string GetDebugInfo() const; |
| 359 void PrintWindowHierarchy(int depth) const; | 359 void PrintWindowHierarchy(int depth) const; |
| 360 #endif | 360 #endif |
| 361 | 361 |
| 362 // Returns true if the window is a constrained window. | |
| 363 void set_is_constrained_window(bool is_constrained_window) { | |
|
sky
2012/09/14 22:50:44
Window shouldn't contain chrome specific propertie
| |
| 364 is_constrained_window_ = is_constrained_window; | |
| 365 } | |
| 366 bool is_constrained_window() const { return is_constrained_window_; } | |
| 367 | |
| 362 private: | 368 private: |
| 363 friend class LayoutManager; | 369 friend class LayoutManager; |
| 364 | 370 |
| 365 // Used when stacking windows. | 371 // Used when stacking windows. |
| 366 enum StackDirection { | 372 enum StackDirection { |
| 367 STACK_ABOVE, | 373 STACK_ABOVE, |
| 368 STACK_BELOW | 374 STACK_BELOW |
| 369 }; | 375 }; |
| 370 | 376 |
| 371 // Called by the public {Set,Get,Clear}Property functions. | 377 // Called by the public {Set,Get,Clear}Property functions. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 493 // Key cannot be used for this purpose because it can be char* or | 499 // Key cannot be used for this purpose because it can be char* or |
| 494 // WindowProperty<>. | 500 // WindowProperty<>. |
| 495 struct Value { | 501 struct Value { |
| 496 const char* name; | 502 const char* name; |
| 497 intptr_t value; | 503 intptr_t value; |
| 498 PropertyDeallocator deallocator; | 504 PropertyDeallocator deallocator; |
| 499 }; | 505 }; |
| 500 | 506 |
| 501 std::map<const void*, Value> prop_map_; | 507 std::map<const void*, Value> prop_map_; |
| 502 | 508 |
| 509 // True if this is a constrained window. | |
| 510 bool is_constrained_window_; | |
| 511 | |
| 503 DISALLOW_COPY_AND_ASSIGN(Window); | 512 DISALLOW_COPY_AND_ASSIGN(Window); |
| 504 }; | 513 }; |
| 505 | 514 |
| 506 } // namespace aura | 515 } // namespace aura |
| 507 | 516 |
| 508 #endif // UI_AURA_WINDOW_H_ | 517 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |