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

Side by Side Diff: chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc

Issue 2696073002: Merge ShelfItemDelegate::ItemSelected & LauncherItemDelegate::Activate. (Closed)
Patch Set: nit Created 3 years, 10 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 "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controll er.h" 5 #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controll er.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 14 matching lines...) Expand all
25 25
26 ArcAppDeferredLauncherItemController::~ArcAppDeferredLauncherItemController() { 26 ArcAppDeferredLauncherItemController::~ArcAppDeferredLauncherItemController() {
27 if (host_) 27 if (host_)
28 host_->Remove(app_id()); 28 host_->Remove(app_id());
29 } 29 }
30 30
31 base::TimeDelta ArcAppDeferredLauncherItemController::GetActiveTime() const { 31 base::TimeDelta ArcAppDeferredLauncherItemController::GetActiveTime() const {
32 return base::Time::Now() - start_time_; 32 return base::Time::Now() - start_time_;
33 } 33 }
34 34
35 ash::ShelfItemDelegate::PerformedAction 35 ash::ShelfAction ArcAppDeferredLauncherItemController::ItemSelected(
36 ArcAppDeferredLauncherItemController::ItemSelected(const ui::Event& event) { 36 ui::EventType event_type,
37 return ash::ShelfItemDelegate::kNoAction; 37 int event_flags,
38 int64_t display_id,
39 ash::ShelfLaunchSource source) {
40 return ash::SHELF_ACTION_NONE;
38 } 41 }
39 42
40 ash::ShelfAppMenuItemList ArcAppDeferredLauncherItemController::GetAppMenuItems( 43 ash::ShelfAppMenuItemList ArcAppDeferredLauncherItemController::GetAppMenuItems(
41 int event_flags) { 44 int event_flags) {
42 return ash::ShelfAppMenuItemList(); 45 return ash::ShelfAppMenuItemList();
43 } 46 }
44 47
45 void ArcAppDeferredLauncherItemController::Close() { 48 void ArcAppDeferredLauncherItemController::Close() {
46 if (host_) 49 if (host_)
47 host_->Close(app_id()); 50 host_->Close(app_id());
48 } 51 }
49
50 ash::ShelfItemDelegate::PerformedAction
51 ArcAppDeferredLauncherItemController::Activate(ash::LaunchSource source) {
52 return ash::ShelfItemDelegate::kNoAction;
53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698