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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // the window's bounds. | 397 // the window's bounds. |
398 void OnLayerBoundsChanged(const gfx::Rect& old_bounds, bool contained_mouse); | 398 void OnLayerBoundsChanged(const gfx::Rect& old_bounds, bool contained_mouse); |
399 | 399 |
400 // Overridden from ui::LayerDelegate: | 400 // Overridden from ui::LayerDelegate: |
401 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; | 401 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; |
402 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; | 402 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; |
403 | 403 |
404 // Updates the layer name with a name based on the window's name and id. | 404 // Updates the layer name with a name based on the window's name and id. |
405 void UpdateLayerName(const std::string& name); | 405 void UpdateLayerName(const std::string& name); |
406 | 406 |
| 407 // Returns true if the mouse is currently within our bounds. |
| 408 bool ContainsMouse(); |
| 409 |
407 #ifndef NDEBUG | 410 #ifndef NDEBUG |
408 // These methods are useful when debugging. | 411 // These methods are useful when debugging. |
409 std::string GetDebugInfo() const; | 412 std::string GetDebugInfo() const; |
410 void PrintWindowHierarchy(int depth) const; | 413 void PrintWindowHierarchy(int depth) const; |
411 #endif | 414 #endif |
412 | 415 |
413 client::WindowType type_; | 416 client::WindowType type_; |
414 | 417 |
415 // True if the Window is owned by its parent - i.e. it will be deleted by its | 418 // True if the Window is owned by its parent - i.e. it will be deleted by its |
416 // parent during its parents destruction. True is the default. | 419 // parent during its parents destruction. True is the default. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 }; | 469 }; |
467 | 470 |
468 std::map<const void*, Value> prop_map_; | 471 std::map<const void*, Value> prop_map_; |
469 | 472 |
470 DISALLOW_COPY_AND_ASSIGN(Window); | 473 DISALLOW_COPY_AND_ASSIGN(Window); |
471 }; | 474 }; |
472 | 475 |
473 } // namespace aura | 476 } // namespace aura |
474 | 477 |
475 #endif // UI_AURA_WINDOW_H_ | 478 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |