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

Side by Side Diff: ui/views/focus/view_storage.h

Issue 2348953002: Remove stl_util's STLDeleteContainerPairSecondPointers from ui/. (Closed)
Patch Set: fix Created 4 years, 3 months 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
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_VIEWS_FOCUS_VIEW_STORAGE_H_ 5 #ifndef UI_VIEWS_FOCUS_VIEW_STORAGE_H_
6 #define UI_VIEWS_FOCUS_VIEW_STORAGE_H_ 6 #define UI_VIEWS_FOCUS_VIEW_STORAGE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // all other mapping pointing to the same view are removed as well. 62 // all other mapping pointing to the same view are removed as well.
63 void EraseView(int storage_id, bool remove_all_ids); 63 void EraseView(int storage_id, bool remove_all_ids);
64 64
65 // Next id for the view storage. 65 // Next id for the view storage.
66 int view_storage_next_id_; 66 int view_storage_next_id_;
67 67
68 // The association id to View used for the view storage. 68 // The association id to View used for the view storage.
69 std::map<int, View*> id_to_view_; 69 std::map<int, View*> id_to_view_;
70 70
71 // Association View to id, used to speed up view notification removal. 71 // Association View to id, used to speed up view notification removal.
72 std::map<View*, std::vector<int>*> view_to_ids_; 72 std::map<View*, std::vector<int>> view_to_ids_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(ViewStorage); 74 DISALLOW_COPY_AND_ASSIGN(ViewStorage);
75 }; 75 };
76 76
77 } // namespace views 77 } // namespace views
78 78
79 #endif // UI_VIEWS_FOCUS_VIEW_STORAGE_H_ 79 #endif // UI_VIEWS_FOCUS_VIEW_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698