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 | |
395 // Called when this window's parent has changed. | 390 // Called when this window's parent has changed. |
396 void OnParentChanged(); | 391 void OnParentChanged(); |
397 | 392 |
398 // Determines the real location for stacking |child| and invokes | 393 // Determines the real location for stacking |child| and invokes |
399 // StackChildRelativeToImpl(). | 394 // StackChildRelativeToImpl(). |
400 void StackChildRelativeTo(Window* child, | 395 void StackChildRelativeTo(Window* child, |
401 Window* target, | 396 Window* target, |
402 StackDirection direction); | 397 StackDirection direction); |
403 | 398 |
404 // Implementation of StackChildRelativeTo(). | 399 // Implementation of StackChildRelativeTo(). |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 }; | 488 }; |
494 | 489 |
495 std::map<const void*, Value> prop_map_; | 490 std::map<const void*, Value> prop_map_; |
496 | 491 |
497 DISALLOW_COPY_AND_ASSIGN(Window); | 492 DISALLOW_COPY_AND_ASSIGN(Window); |
498 }; | 493 }; |
499 | 494 |
500 } // namespace aura | 495 } // namespace aura |
501 | 496 |
502 #endif // UI_AURA_WINDOW_H_ | 497 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |