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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_list_prefs.h

Issue 2112013002: Allow arc app to lock screen orientation in TouchView/Tablet mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow arc app to lock screen orientation in TouchView/Tablet mode Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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 b00e1659f32d8d28667355045a8be612bb4d2c31..0357525b87da7822cc171b91a65e2700d2efe736 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 {
@@ -120,6 +122,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() {}
};
@@ -194,7 +200,7 @@ class ArcAppListPrefs : public KeyedService,
void RemoveApp(const std::string& app_id);
private:
- FRIEND_TEST_ALL_PREFIXES(ChromeLauncherControllerImplTest, ArcAppPinPolicy);
+ friend class ChromeLauncherControllerImplTest;
// See the Create methods.
ArcAppListPrefs(const base::FilePath& base_path, PrefService* prefs);
@@ -227,6 +233,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,
@@ -235,7 +244,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;
« no previous file with comments | « ash/display/screen_orientation_controller_chromeos.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698