Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: ui/aura/window.h

Issue 101013002: Make sure WindowObservers are removed from window before destruction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cc Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 void* user_data_; 574 void* user_data_;
575 575
576 // Makes the window pass all events through to any windows behind it. 576 // Makes the window pass all events through to any windows behind it.
577 bool ignore_events_; 577 bool ignore_events_;
578 578
579 // See set_hit_test_outer_override(). 579 // See set_hit_test_outer_override().
580 gfx::Insets hit_test_bounds_override_outer_mouse_; 580 gfx::Insets hit_test_bounds_override_outer_mouse_;
581 gfx::Insets hit_test_bounds_override_outer_touch_; 581 gfx::Insets hit_test_bounds_override_outer_touch_;
582 gfx::Insets hit_test_bounds_override_inner_; 582 gfx::Insets hit_test_bounds_override_inner_;
583 583
584 ObserverList<WindowObserver> observers_; 584 ObserverList<WindowObserver, true> observers_;
585 585
586 // Value struct to keep the name and deallocator for this property. 586 // Value struct to keep the name and deallocator for this property.
587 // Key cannot be used for this purpose because it can be char* or 587 // Key cannot be used for this purpose because it can be char* or
588 // WindowProperty<>. 588 // WindowProperty<>.
589 struct Value { 589 struct Value {
590 const char* name; 590 const char* name;
591 int64 value; 591 int64 value;
592 PropertyDeallocator deallocator; 592 PropertyDeallocator deallocator;
593 }; 593 };
594 594
595 std::map<const void*, Value> prop_map_; 595 std::map<const void*, Value> prop_map_;
596 596
597 DISALLOW_COPY_AND_ASSIGN(Window); 597 DISALLOW_COPY_AND_ASSIGN(Window);
598 }; 598 };
599 599
600 } // namespace aura 600 } // namespace aura
601 601
602 #endif // UI_AURA_WINDOW_H_ 602 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/window_observer.h » ('j') | ui/aura/window_observer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698