| Index: chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
|
| diff --git a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
|
| index c4f9f2fb95ce72f415003b323b02b391fb8b4f80..ce6b1928c5d4467469c35d15047c33068e9ce331 100644
|
| --- a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
|
| +++ b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
|
| @@ -60,7 +60,8 @@ class ArcAppListPrefs : public KeyedService,
|
| bool notifications_enabled,
|
| bool ready,
|
| bool showInLauncher,
|
| - bool shortcut);
|
| + bool shortcut,
|
| + arc::mojom::OrientationLock orientation_lock);
|
| ~AppInfo();
|
|
|
| std::string name;
|
| @@ -74,6 +75,7 @@ class ArcAppListPrefs : public KeyedService,
|
| bool ready;
|
| bool showInLauncher;
|
| bool shortcut;
|
| + arc::mojom::OrientationLock orientation_lock;
|
| };
|
|
|
| struct PackageInfo {
|
| @@ -118,6 +120,10 @@ class ArcAppListPrefs : public KeyedService,
|
| virtual void OnNotificationsEnabledChanged(
|
| const std::string& package_name, bool enabled) {}
|
|
|
| + virtual void OnTaskOrientationLockRequested(
|
| + int32_t task_id,
|
| + const arc::mojom::OrientationLock orientation_lock) {}
|
| +
|
| protected:
|
| virtual ~Observer() {}
|
| };
|
| @@ -225,6 +231,9 @@ class ArcAppListPrefs : public KeyedService,
|
| void OnPackageModified(arc::mojom::ArcPackageInfoPtr package_info) override;
|
| void OnPackageListRefreshed(
|
| mojo::Array<arc::mojom::ArcPackageInfoPtr> packages) override;
|
| + void OnTaskOrientationLockRequested(
|
| + int32_t task_id,
|
| + const arc::mojom::OrientationLock orientation_lock) override;
|
|
|
| void AddAppAndShortcut(const std::string& name,
|
| const std::string& package_name,
|
| @@ -233,7 +242,8 @@ class ArcAppListPrefs : public KeyedService,
|
| const std::string& icon_resource_id,
|
| const bool sticky,
|
| const bool notifications_enabled,
|
| - const bool shortcut);
|
| + const bool shortcut,
|
| + arc::mojom::OrientationLock orientation_lock);
|
| void DisableAllApps();
|
| void RemoveAllApps();
|
| std::vector<std::string> GetAppIdsNoArcEnabledCheck() const;
|
|
|