summaryrefslogtreecommitdiffstats
path: root/ui/views/focus/view_storage.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-03 17:29:32 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-03 17:29:32 +0000
commit330dc11b876d4b92852dd27fcdbc3cf30283ac85 (patch)
treece4e27b9db9bdd0562b0b296de9078f1c05c9104 /ui/views/focus/view_storage.cc
parenta33721a77396c8f7607d330cd3d07b82f4ebc0ed (diff)
downloadchromium_src-330dc11b876d4b92852dd27fcdbc3cf30283ac85.zip
chromium_src-330dc11b876d4b92852dd27fcdbc3cf30283ac85.tar.gz
chromium_src-330dc11b876d4b92852dd27fcdbc3cf30283ac85.tar.bz2
Complete the Focus Manager hookup.
- Temporarily patch in old Focus Sibling initialization code. - Improve the constness of FocusSearch - Simplify ContainsView method in FocusManager BUG=none TEST=none Review URL: http://codereview.chromium.org/6349080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73632 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/focus/view_storage.cc')
-rw-r--r--ui/views/focus/view_storage.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/views/focus/view_storage.cc b/ui/views/focus/view_storage.cc
index 504787a..e9c9799 100644
--- a/ui/views/focus/view_storage.cc
+++ b/ui/views/focus/view_storage.cc
@@ -34,7 +34,7 @@ void ViewStorage::StoreView(int storage_id, View* view) {
if (iter != id_to_view_.end()) {
NOTREACHED();
- RemoveView(storage_id);
+ RemoveViewByID(storage_id);
}
id_to_view_[storage_id] = view;
@@ -58,14 +58,14 @@ View* ViewStorage::RetrieveView(int storage_id) {
return iter->second;
}
-void ViewStorage::RemoveView(int storage_id) {
+void ViewStorage::RemoveViewByID(int storage_id) {
EraseView(storage_id, false);
}
-void ViewStorage::ViewRemoved(View* parent, View* removed) {
+void ViewStorage::RemoveView(View* view) {
// Let's first retrieve the ids for that view.
std::map<View*, std::vector<int>*>::iterator ids_iter =
- view_to_ids_.find(removed);
+ view_to_ids_.find(view);
if (ids_iter == view_to_ids_.end()) {
// That view is not in the view storage.