| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // Called when this window's stacking order among its siblings is changed. | 388 // Called when this window's stacking order among its siblings is changed. |
| 389 void OnStackingChanged(); | 389 void OnStackingChanged(); |
| 390 | 390 |
| 391 // Notifies observers registered with this Window (and its subtree) when the | 391 // Notifies observers registered with this Window (and its subtree) when the |
| 392 // Window has been added or is about to be removed from a RootWindow. | 392 // Window has been added or is about to be removed from a RootWindow. |
| 393 void NotifyAddedToRootWindow(); | 393 void NotifyAddedToRootWindow(); |
| 394 void NotifyRemovingFromRootWindow(); | 394 void NotifyRemovingFromRootWindow(); |
| 395 | 395 |
| 396 // Overridden from ui::LayerDelegate: | 396 // Overridden from ui::LayerDelegate: |
| 397 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; | 397 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; |
| 398 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 398 | 399 |
| 399 // Updates the layer name with a name based on the window's name and id. | 400 // Updates the layer name with a name based on the window's name and id. |
| 400 void UpdateLayerName(const std::string& name); | 401 void UpdateLayerName(const std::string& name); |
| 401 | 402 |
| 402 #ifndef NDEBUG | 403 #ifndef NDEBUG |
| 403 // These methods are useful when debugging. | 404 // These methods are useful when debugging. |
| 404 std::string GetDebugInfo() const; | 405 std::string GetDebugInfo() const; |
| 405 void PrintWindowHierarchy(int depth) const; | 406 void PrintWindowHierarchy(int depth) const; |
| 406 #endif | 407 #endif |
| 407 | 408 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 }; | 470 }; |
| 470 | 471 |
| 471 std::map<const void*, Value> prop_map_; | 472 std::map<const void*, Value> prop_map_; |
| 472 | 473 |
| 473 DISALLOW_COPY_AND_ASSIGN(Window); | 474 DISALLOW_COPY_AND_ASSIGN(Window); |
| 474 }; | 475 }; |
| 475 | 476 |
| 476 } // namespace aura | 477 } // namespace aura |
| 477 | 478 |
| 478 #endif // UI_AURA_WINDOW_H_ | 479 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |