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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 // Changes the bounds of the window without condition. | 395 // Changes the bounds of the window without condition. |
396 void SetBoundsInternal(const gfx::Rect& new_bounds); | 396 void SetBoundsInternal(const gfx::Rect& new_bounds); |
397 | 397 |
398 // Updates the visible state of the layer, but does not make visible-state | 398 // Updates the visible state of the layer, but does not make visible-state |
399 // specific changes. Called from Show()/Hide(). | 399 // specific changes. Called from Show()/Hide(). |
400 void SetVisible(bool visible); | 400 void SetVisible(bool visible); |
401 | 401 |
402 // Schedules a paint for the Window's entire bounds. | 402 // Schedules a paint for the Window's entire bounds. |
403 void SchedulePaint(); | 403 void SchedulePaint(); |
404 | 404 |
| 405 // Asks the delegate to paint the window and invokes PaintLayerlessChildren() |
| 406 // to paint any children with no layers. |
| 407 void Paint(gfx::Canvas* canvas); |
| 408 |
| 409 // Paints any layerless children to |canvas|. |
| 410 void PaintLayerlessChildren(gfx::Canvas* canvas); |
| 411 |
405 // Gets a Window (either this one or a subwindow) containing |local_point|. | 412 // Gets a Window (either this one or a subwindow) containing |local_point|. |
406 // If |return_tightest| is true, returns the tightest-containing (i.e. | 413 // If |return_tightest| is true, returns the tightest-containing (i.e. |
407 // furthest down the hierarchy) Window containing the point; otherwise, | 414 // furthest down the hierarchy) Window containing the point; otherwise, |
408 // returns the loosest. If |for_event_handling| is true, then hit-test masks | 415 // returns the loosest. If |for_event_handling| is true, then hit-test masks |
409 // are honored; otherwise, only bounds checks are performed. | 416 // are honored; otherwise, only bounds checks are performed. |
410 Window* GetWindowForPoint(const gfx::Point& local_point, | 417 Window* GetWindowForPoint(const gfx::Point& local_point, |
411 bool return_tightest, | 418 bool return_tightest, |
412 bool for_event_handling); | 419 bool for_event_handling); |
413 | 420 |
414 // Implementation of RemoveChild(). If |child| is being removed as the result | 421 // Implementation of RemoveChild(). If |child| is being removed as the result |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 }; | 600 }; |
594 | 601 |
595 std::map<const void*, Value> prop_map_; | 602 std::map<const void*, Value> prop_map_; |
596 | 603 |
597 DISALLOW_COPY_AND_ASSIGN(Window); | 604 DISALLOW_COPY_AND_ASSIGN(Window); |
598 }; | 605 }; |
599 | 606 |
600 } // namespace aura | 607 } // namespace aura |
601 | 608 |
602 #endif // UI_AURA_WINDOW_H_ | 609 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |