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

Unified Diff: ash/display/screen_orientation_controller_chromeos.h

Issue 2699033002: Replace WmWindowObserver with aura::WindowObserver. (Closed)
Patch Set: Check for null images in ShelfWindowWatcher. Created 3 years, 10 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/common/wm_window_user_data.h ('k') | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_orientation_controller_chromeos.h
diff --git a/ash/display/screen_orientation_controller_chromeos.h b/ash/display/screen_orientation_controller_chromeos.h
index 7a09c661b959094cecaf2b80c4b9f1ca67f132bc..e0d0e5bd87e7d8fa8b5d6928f110d853cdb7b539 100644
--- a/ash/display/screen_orientation_controller_chromeos.h
+++ b/ash/display/screen_orientation_controller_chromeos.h
@@ -11,12 +11,12 @@
#include "ash/common/shell_observer.h"
#include "ash/common/wm_activation_observer.h"
#include "ash/common/wm_display_observer.h"
-#include "ash/common/wm_window_observer.h"
#include "base/macros.h"
#include "base/observer_list.h"
#include "chromeos/accelerometer/accelerometer_reader.h"
#include "chromeos/accelerometer/accelerometer_types.h"
#include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationLockType.h"
+#include "ui/aura/window_observer.h"
#include "ui/display/display.h"
namespace ash {
@@ -24,7 +24,7 @@ namespace ash {
// Implements ChromeOS specific functionality for ScreenOrientationProvider.
class ASH_EXPORT ScreenOrientationController
: public WmActivationObserver,
- public WmWindowObserver,
+ public aura::WindowObserver,
public chromeos::AccelerometerReader::Observer,
public WmDisplayObserver,
public ShellObserver {
@@ -80,9 +80,9 @@ class ASH_EXPORT ScreenOrientationController
void OnWindowActivated(WmWindow* gained_active,
WmWindow* lost_active) override;
- // WmWindowObserver:
- void OnWindowDestroying(WmWindow* window) override;
- void OnWindowVisibilityChanged(WmWindow* window, bool visible) override;
+ // aura::WindowObserver:
+ void OnWindowDestroying(aura::Window* window) override;
+ void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
// chromeos::AccelerometerReader::Observer:
void OnAccelerometerUpdated(
« no previous file with comments | « ash/common/wm_window_user_data.h ('k') | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698