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

Side by Side Diff: ash/mus/shelf_delegate_mus.cc

Issue 2341643002: Enhance chrome.app.window API for shelf integration with pinning support (cont.) (Closed)
Patch Set: Include AppLauncherId wrapper Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/mus/shelf_delegate_mus.h" 5 #include "ash/mus/shelf_delegate_mus.h"
6 6
7 #include "ash/common/shelf/shelf_controller.h" 7 #include "ash/common/shelf/shelf_controller.h"
8 #include "ash/common/wm_shell.h" 8 #include "ash/common/wm_shell.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 10
(...skipping 21 matching lines...) Expand all
32 bool ShelfDelegateMus::HasShelfIDToAppIDMapping(ShelfID id) const { 32 bool ShelfDelegateMus::HasShelfIDToAppIDMapping(ShelfID id) const {
33 return WmShell::Get()->shelf_controller()->shelf_id_to_app_id().count(id) > 0; 33 return WmShell::Get()->shelf_controller()->shelf_id_to_app_id().count(id) > 0;
34 } 34 }
35 35
36 const std::string& ShelfDelegateMus::GetAppIDForShelfID(ShelfID id) { 36 const std::string& ShelfDelegateMus::GetAppIDForShelfID(ShelfID id) {
37 if (WmShell::Get()->shelf_controller()->shelf_id_to_app_id().count(id)) 37 if (WmShell::Get()->shelf_controller()->shelf_id_to_app_id().count(id))
38 return WmShell::Get()->shelf_controller()->shelf_id_to_app_id().at(id); 38 return WmShell::Get()->shelf_controller()->shelf_id_to_app_id().at(id);
39 return base::EmptyString(); 39 return base::EmptyString();
40 } 40 }
41 41
42 const std::string& ShelfDelegateMus::GetLaunchIDForShelfID(ShelfID id) {
43 return base::EmptyString();
44 }
45
42 void ShelfDelegateMus::PinAppWithID(const std::string& app_id) { 46 void ShelfDelegateMus::PinAppWithID(const std::string& app_id) {
43 NOTIMPLEMENTED(); 47 NOTIMPLEMENTED();
44 } 48 }
45 49
46 bool ShelfDelegateMus::IsAppPinned(const std::string& app_id) { 50 bool ShelfDelegateMus::IsAppPinned(const std::string& app_id) {
47 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
48 return false; 52 return false;
49 } 53 }
50 54
51 void ShelfDelegateMus::UnpinAppWithID(const std::string& app_id) { 55 void ShelfDelegateMus::UnpinAppWithID(const std::string& app_id) {
52 NOTIMPLEMENTED(); 56 NOTIMPLEMENTED();
53 } 57 }
54 58
55 } // namespace ash 59 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698