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

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

Issue 1543173002: Switch to standard integer types in ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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>
9
8 #include <map> 10 #include <map>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/basictypes.h" 13 #include "base/macros.h"
12 #include "ui/views/views_export.h" 14 #include "ui/views/views_export.h"
13 15
14 namespace base { 16 namespace base {
15 template <typename T> struct DefaultSingletonTraits; 17 template <typename T> struct DefaultSingletonTraits;
16 } 18 }
17 19
18 // This class is a simple storage place for storing/retrieving views. It is 20 // This class is a simple storage place for storing/retrieving views. It is
19 // used for example in the FocusManager to store/restore focused views when the 21 // used for example in the FocusManager to store/restore focused views when the
20 // main window becomes active/inactive. 22 // main window becomes active/inactive.
21 // It automatically removes a view from the storage if the view is removed from 23 // It automatically removes a view from the storage if the view is removed from
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 70
69 // Association View to id, used to speed up view notification removal. 71 // Association View to id, used to speed up view notification removal.
70 std::map<View*, std::vector<int>*> view_to_ids_; 72 std::map<View*, std::vector<int>*> view_to_ids_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(ViewStorage); 74 DISALLOW_COPY_AND_ASSIGN(ViewStorage);
73 }; 75 };
74 76
75 } // namespace views 77 } // namespace views
76 78
77 #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