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

Side by Side Diff: ash/test/test_shelf_delegate.cc

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shutdown
Patch Set: rebase Created 4 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "ash/test/test_shelf_delegate.h" 5 #include "ash/test/test_shelf_delegate.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/shelf/shelf_item_delegate_manager.h" 9 #include "ash/shelf/shelf_item_delegate_manager.h"
10 #include "ash/shelf/shelf_model.h" 10 #include "ash/shelf/shelf_model.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 void TestShelfDelegate::OnShelfCreated(Shelf* shelf) {} 94 void TestShelfDelegate::OnShelfCreated(Shelf* shelf) {}
95 95
96 void TestShelfDelegate::OnShelfDestroyed(Shelf* shelf) {} 96 void TestShelfDelegate::OnShelfDestroyed(Shelf* shelf) {}
97 97
98 void TestShelfDelegate::OnShelfAlignmentChanged(Shelf* shelf) {} 98 void TestShelfDelegate::OnShelfAlignmentChanged(Shelf* shelf) {}
99 99
100 void TestShelfDelegate::OnShelfAutoHideBehaviorChanged(Shelf* shelf) {} 100 void TestShelfDelegate::OnShelfAutoHideBehaviorChanged(Shelf* shelf) {}
101 101
102 void TestShelfDelegate::OnShelfAutoHideStateChanged(Shelf* shelf) {}
103
104 void TestShelfDelegate::OnShelfVisibilityStateChanged(Shelf* shelf) {}
105
102 ShelfID TestShelfDelegate::GetShelfIDForAppID(const std::string& app_id) { 106 ShelfID TestShelfDelegate::GetShelfIDForAppID(const std::string& app_id) {
103 for (auto const& iter : shelf_id_to_app_id_map_) { 107 for (auto const& iter : shelf_id_to_app_id_map_) {
104 if (iter.second == app_id) 108 if (iter.second == app_id)
105 return iter.first; 109 return iter.first;
106 } 110 }
107 return 0; 111 return 0;
108 } 112 }
109 113
110 bool TestShelfDelegate::HasShelfIDToAppIDMapping(ShelfID id) const { 114 bool TestShelfDelegate::HasShelfIDToAppIDMapping(ShelfID id) const {
111 return shelf_id_to_app_id_map_.find(id) != shelf_id_to_app_id_map_.end(); 115 return shelf_id_to_app_id_map_.find(id) != shelf_id_to_app_id_map_.end();
(...skipping 20 matching lines...) Expand all
132 const std::string& app_id) { 136 const std::string& app_id) {
133 shelf_id_to_app_id_map_[shelf_id] = app_id; 137 shelf_id_to_app_id_map_[shelf_id] = app_id;
134 } 138 }
135 139
136 void TestShelfDelegate::RemoveShelfIDToAppIDMapping(ShelfID shelf_id) { 140 void TestShelfDelegate::RemoveShelfIDToAppIDMapping(ShelfID shelf_id) {
137 shelf_id_to_app_id_map_.erase(shelf_id); 141 shelf_id_to_app_id_map_.erase(shelf_id);
138 } 142 }
139 143
140 } // namespace test 144 } // namespace test
141 } // namespace ash 145 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/test_shelf_delegate.h ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698