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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 | 380 |
381 // Gets a Window (either this one or a subwindow) containing |local_point|. | 381 // Gets a Window (either this one or a subwindow) containing |local_point|. |
382 // If |return_tightest| is true, returns the tightest-containing (i.e. | 382 // If |return_tightest| is true, returns the tightest-containing (i.e. |
383 // furthest down the hierarchy) Window containing the point; otherwise, | 383 // furthest down the hierarchy) Window containing the point; otherwise, |
384 // returns the loosest. If |for_event_handling| is true, then hit-test masks | 384 // returns the loosest. If |for_event_handling| is true, then hit-test masks |
385 // are honored; otherwise, only bounds checks are performed. | 385 // are honored; otherwise, only bounds checks are performed. |
386 Window* GetWindowForPoint(const gfx::Point& local_point, | 386 Window* GetWindowForPoint(const gfx::Point& local_point, |
387 bool return_tightest, | 387 bool return_tightest, |
388 bool for_event_handling); | 388 bool for_event_handling); |
389 | 389 |
| 390 // Implementation of RemoveChild(). If |child| is being removed as the result |
| 391 // of an add, |new_parent| is the new parent |child| is going to be parented |
| 392 // to. |
| 393 void RemoveChildImpl(Window* child, Window* new_parent); |
| 394 |
390 // Called when this window's parent has changed. | 395 // Called when this window's parent has changed. |
391 void OnParentChanged(); | 396 void OnParentChanged(); |
392 | 397 |
393 // Determines the real location for stacking |child| and invokes | 398 // Determines the real location for stacking |child| and invokes |
394 // StackChildRelativeToImpl(). | 399 // StackChildRelativeToImpl(). |
395 void StackChildRelativeTo(Window* child, | 400 void StackChildRelativeTo(Window* child, |
396 Window* target, | 401 Window* target, |
397 StackDirection direction); | 402 StackDirection direction); |
398 | 403 |
399 // Implementation of StackChildRelativeTo(). | 404 // Implementation of StackChildRelativeTo(). |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 }; | 493 }; |
489 | 494 |
490 std::map<const void*, Value> prop_map_; | 495 std::map<const void*, Value> prop_map_; |
491 | 496 |
492 DISALLOW_COPY_AND_ASSIGN(Window); | 497 DISALLOW_COPY_AND_ASSIGN(Window); |
493 }; | 498 }; |
494 | 499 |
495 } // namespace aura | 500 } // namespace aura |
496 | 501 |
497 #endif // UI_AURA_WINDOW_H_ | 502 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |