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

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller.h

Issue 267743010: Suppressed screen rotation notifications triggeres by the accelerometer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Rob's comments from patch set 1 Created 6 years, 7 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: ash/wm/maximize_mode/maximize_mode_controller.h
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.h b/ash/wm/maximize_mode/maximize_mode_controller.h
index 02778a7136051cff6e1918a9673bc25905a2e165..93262e5dac51509b7239e37e9c354ab0bccb8231 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.h
+++ b/ash/wm/maximize_mode/maximize_mode_controller.h
@@ -7,6 +7,7 @@
#include "ash/accelerometer/accelerometer_observer.h"
#include "ash/ash_export.h"
+#include "ash/display/display_manager.h"
flackr 2014/05/05 20:26:54 Forward declare DisplayManager class, or perhaps n
bruthig 2014/05/05 20:57:22 Done.
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
@@ -48,6 +49,11 @@ class ASH_EXPORT MaximizeModeController : public AccelerometerObserver {
// screen.
void HandleScreenRotation(const gfx::Vector3dF& lid);
+ // Sets the display's rotation.
+ void SetDisplayRotation(DisplayManager* display_manager,
flackr 2014/05/05 20:26:54 Since this doesn't need anything from the class, p
bruthig 2014/05/05 20:57:22 Done.
+ int64 display_id,
+ gfx::Display::Rotation rotation) const;
+
// An event handler which traps mouse and keyboard events while maximize
// mode is engaged.
scoped_ptr<MaximizeModeEventBlocker> event_blocker_;
« no previous file with comments | « no previous file | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698