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

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

Issue 269633005: Only block internal touchpad and allow external mice to continue working in maximize mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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 6363211e343e2d43de4634dc258d515076e111d0..4d19dcc8e80d4d149ced7b9aef9ef21d7bc375bd 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.h
+++ b/ash/wm/maximize_mode/maximize_mode_controller.h
@@ -17,6 +17,7 @@ class EventHandler;
namespace ash {
+class MaximizeModeControllerTest;
class MaximizeModeEventBlocker;
// MaximizeModeController listens to accelerometer events and automatically
@@ -53,6 +54,8 @@ class ASH_EXPORT MaximizeModeController : public AccelerometerObserver {
const gfx::Vector3dF& lid) OVERRIDE;
private:
+ friend class MaximizeModeControllerTest;
+
// Detect hinge rotation from |base| and |lid| accelerometers and
// automatically start / stop maximize mode.
void HandleHingeRotation(const gfx::Vector3dF& base,
« no previous file with comments | « ash/wm/maximize_mode/internal_input_device_list_x11.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698