| 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 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_DEFERRED_LAUNCHER_ITEM_CONTROLLER
_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_DEFERRED_LAUNCHER_ITEM_CONTROLLER
_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_DEFERRED_LAUNCHER_ITEM_CONTROLLER
_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_DEFERRED_LAUNCHER_ITEM_CONTROLLER
_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/public/cpp/shelf_item_delegate.h" | 10 #include "ash/public/cpp/shelf_item_delegate.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ~ArcAppDeferredLauncherItemController() override; | 27 ~ArcAppDeferredLauncherItemController() override; |
| 28 | 28 |
| 29 base::TimeDelta GetActiveTime() const; | 29 base::TimeDelta GetActiveTime() const; |
| 30 | 30 |
| 31 int event_flags() const { return event_flags_; } | 31 int event_flags() const { return event_flags_; } |
| 32 | 32 |
| 33 // ash::ShelfItemDelegate: | 33 // ash::ShelfItemDelegate: |
| 34 void ItemSelected(std::unique_ptr<ui::Event> event, | 34 void ItemSelected(std::unique_ptr<ui::Event> event, |
| 35 int64_t display_id, | 35 int64_t display_id, |
| 36 ash::ShelfLaunchSource source, | 36 ash::ShelfLaunchSource source, |
| 37 const ItemSelectedCallback& callback) override; | 37 ItemSelectedCallback callback) override; |
| 38 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override; | 38 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override; |
| 39 void Close() override; | 39 void Close() override; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 // The flags of the event that caused the ARC app to be activated. These will | 42 // The flags of the event that caused the ARC app to be activated. These will |
| 43 // be propagated to the launch event once the app is actually launched. | 43 // be propagated to the launch event once the app is actually launched. |
| 44 const int event_flags_; | 44 const int event_flags_; |
| 45 | 45 |
| 46 base::WeakPtr<ArcAppDeferredLauncherController> host_; | 46 base::WeakPtr<ArcAppDeferredLauncherController> host_; |
| 47 const base::Time start_time_; | 47 const base::Time start_time_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(ArcAppDeferredLauncherItemController); | 49 DISALLOW_COPY_AND_ASSIGN(ArcAppDeferredLauncherItemController); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_DEFERRED_LAUNCHER_ITEM_CONTROL
LER_H_ | 52 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_DEFERRED_LAUNCHER_ITEM_CONTROL
LER_H_ |
| OLD | NEW |