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

Unified Diff: ash/wallpaper/wallpaper_controller.h

Issue 2848883004: Add screen rotation animator lock. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « ash/rotator/screen_rotation_animator_lock.cc ('k') | ash/wallpaper/wallpaper_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wallpaper/wallpaper_controller.h
diff --git a/ash/wallpaper/wallpaper_controller.h b/ash/wallpaper/wallpaper_controller.h
index e72991f205552ffeb437880e421d59213a960ffa..d3932d10f6c661990480b4a3989cf22f349bed6f 100644
--- a/ash/wallpaper/wallpaper_controller.h
+++ b/ash/wallpaper/wallpaper_controller.h
@@ -33,6 +33,7 @@ class WallpaperResizer;
namespace ash {
+class ScreenRotationAnimatorLock;
class WallpaperControllerObserver;
// Controls the desktop background wallpaper:
@@ -117,6 +118,11 @@ class ASH_EXPORT WallpaperController
// Opens the set wallpaper page in the browser.
void OpenSetWallpaperPage();
+ // ScreenRotationAnimatorLock controllered by the ScreenRotationAnimator.
+ void SetScreenRotationAnimatorLock(ScreenRotationAnimatorLock* lock) {
+ screen_rotation_animator_lock_ = lock;
+ }
+
// mojom::WallpaperController overrides:
void SetWallpaperPicker(mojom::WallpaperPickerPtr picker) override;
void SetWallpaper(const SkBitmap& wallpaper,
@@ -204,6 +210,9 @@ class ASH_EXPORT WallpaperController
ScopedSessionObserver scoped_session_observer_;
+ // weak ptr.
+ ScreenRotationAnimatorLock* screen_rotation_animator_lock_;
+
DISALLOW_COPY_AND_ASSIGN(WallpaperController);
};
« no previous file with comments | « ash/rotator/screen_rotation_animator_lock.cc ('k') | ash/wallpaper/wallpaper_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698