| OLD | NEW |
| 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 "chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 item_delegate_binding_.Bind(&ptr_info); | 31 item_delegate_binding_.Bind(&ptr_info); |
| 32 return ptr_info; | 32 return ptr_info; |
| 33 } | 33 } |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 // ash::mojom::ShelfItemDelegate: | 36 // ash::mojom::ShelfItemDelegate: |
| 37 void LaunchItem() override { | 37 void LaunchItem() override { |
| 38 controller_->LaunchApp(ash::AppLauncherId(app_id_), | 38 controller_->LaunchApp(ash::AppLauncherId(app_id_), |
| 39 ash::LAUNCH_FROM_UNKNOWN, ui::EF_NONE); | 39 ash::LAUNCH_FROM_UNKNOWN, ui::EF_NONE); |
| 40 } | 40 } |
| 41 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override { | 41 void ExecuteCommand(uint32_t command_id, int event_flags) override { |
| 42 NOTIMPLEMENTED(); | 42 NOTIMPLEMENTED(); |
| 43 } | 43 } |
| 44 void ItemPinned() override { NOTIMPLEMENTED(); } | 44 void ItemPinned() override { NOTIMPLEMENTED(); } |
| 45 void ItemUnpinned() override { NOTIMPLEMENTED(); } | 45 void ItemUnpinned() override { NOTIMPLEMENTED(); } |
| 46 void ItemReordered(uint32_t order) override { NOTIMPLEMENTED(); } | 46 void ItemReordered(uint32_t order) override { NOTIMPLEMENTED(); } |
| 47 | 47 |
| 48 std::string app_id_; | 48 std::string app_id_; |
| 49 mojo::AssociatedBinding<ash::mojom::ShelfItemDelegate> item_delegate_binding_; | 49 mojo::AssociatedBinding<ash::mojom::ShelfItemDelegate> item_delegate_binding_; |
| 50 | 50 |
| 51 // Not owned. | 51 // Not owned. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void ChromeLauncherControllerMus::ActiveUserChanged( | 175 void ChromeLauncherControllerMus::ActiveUserChanged( |
| 176 const std::string& user_email) { | 176 const std::string& user_email) { |
| 177 NOTIMPLEMENTED(); | 177 NOTIMPLEMENTED(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void ChromeLauncherControllerMus::AdditionalUserAddedToSession( | 180 void ChromeLauncherControllerMus::AdditionalUserAddedToSession( |
| 181 Profile* profile) { | 181 Profile* profile) { |
| 182 NOTIMPLEMENTED(); | 182 NOTIMPLEMENTED(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 ash::ShelfAppMenuItemList ChromeLauncherControllerMus::GetAppMenuItems( | 185 ash::ShelfAppMenuItemList |
| 186 const ash::ShelfItem& item, | 186 ChromeLauncherControllerMus::GetAppMenuItemsForTesting( |
| 187 int event_flags) { | 187 const ash::ShelfItem& item) { |
| 188 NOTIMPLEMENTED(); | 188 NOTIMPLEMENTED(); |
| 189 return ash::ShelfAppMenuItemList(); | 189 return ash::ShelfAppMenuItemList(); |
| 190 } | 190 } |
| 191 | 191 |
| 192 std::vector<content::WebContents*> | 192 std::vector<content::WebContents*> |
| 193 ChromeLauncherControllerMus::GetV1ApplicationsFromAppId( | 193 ChromeLauncherControllerMus::GetV1ApplicationsFromAppId( |
| 194 const std::string& app_id) { | 194 const std::string& app_id) { |
| 195 NOTIMPLEMENTED(); | 195 NOTIMPLEMENTED(); |
| 196 return std::vector<content::WebContents*>(); | 196 return std::vector<content::WebContents*>(); |
| 197 } | 197 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 app_id_to_item_delegate_.insert( | 297 app_id_to_item_delegate_.insert( |
| 298 std::make_pair(app_id, std::move(delegate))); | 298 std::make_pair(app_id, std::move(delegate))); |
| 299 | 299 |
| 300 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id); | 300 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id); |
| 301 if (app_icon_loader) { | 301 if (app_icon_loader) { |
| 302 app_icon_loader->FetchImage(app_id); | 302 app_icon_loader->FetchImage(app_id); |
| 303 app_icon_loader->UpdateImage(app_id); | 303 app_icon_loader->UpdateImage(app_id); |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 } | 306 } |
| OLD | NEW |