| 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 "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 base::TimeDelta GetActiveTime() const; | 31 base::TimeDelta GetActiveTime() const; |
| 32 | 32 |
| 33 int event_flags() const { return event_flags_; } | 33 int event_flags() const { return event_flags_; } |
| 34 | 34 |
| 35 // ash::ShelfItemDelegate | 35 // ash::ShelfItemDelegate |
| 36 ash::ShelfAction ItemSelected(ui::EventType event_type, | 36 ash::ShelfAction ItemSelected(ui::EventType event_type, |
| 37 int event_flags, | 37 int event_flags, |
| 38 int64_t display_id, | 38 int64_t display_id, |
| 39 ash::ShelfLaunchSource source) override; | 39 ash::ShelfLaunchSource source) override; |
| 40 ash::ShelfAppMenuItemList GetAppMenuItems(int event_flags) override; | 40 ash::ShelfAppMenuItemList GetAppMenuItems(int event_flags) override; |
| 41 void ExecuteCommand(uint32_t command_id, int event_flags) override; |
| 41 void Close() override; | 42 void Close() override; |
| 42 | 43 |
| 43 private: | 44 private: |
| 44 // The flags of the event that caused the ARC app to be activated. These will | 45 // The flags of the event that caused the ARC app to be activated. These will |
| 45 // be propagated to the launch event once the app is actually launched. | 46 // be propagated to the launch event once the app is actually launched. |
| 46 const int event_flags_; | 47 const int event_flags_; |
| 47 | 48 |
| 48 base::WeakPtr<ArcAppDeferredLauncherController> host_; | 49 base::WeakPtr<ArcAppDeferredLauncherController> host_; |
| 49 const base::Time start_time_; | 50 const base::Time start_time_; |
| 50 | 51 |
| 51 DISALLOW_COPY_AND_ASSIGN(ArcAppDeferredLauncherItemController); | 52 DISALLOW_COPY_AND_ASSIGN(ArcAppDeferredLauncherItemController); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_DEFERRED_LAUNCHER_ITEM_CONTROL
LER_H_ | 55 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_DEFERRED_LAUNCHER_ITEM_CONTROL
LER_H_ |
| OLD | NEW |