| Index: ash/wm/workspace/two_step_edge_cycler.h
|
| diff --git a/ash/wm/workspace/two_step_edge_cycler.h b/ash/wm/workspace/two_step_edge_cycler.h
|
| index 01ca0866220f7808eacd3e769c99bed948e842f9..3254cfd930ddb25851430636c2448f0c1f5190bd 100644
|
| --- a/ash/wm/workspace/two_step_edge_cycler.h
|
| +++ b/ash/wm/workspace/two_step_edge_cycler.h
|
| @@ -19,7 +19,10 @@ namespace ash {
|
| // the workspace.
|
| class ASH_EXPORT TwoStepEdgeCycler {
|
| public:
|
| - explicit TwoStepEdgeCycler(const gfx::Point& start);
|
| + // The direction in which a mouse should travel to switch mode.
|
| + enum Direction { DIRECTION_LEFT, DIRECTION_RIGHT };
|
| +
|
| + explicit TwoStepEdgeCycler(const gfx::Point& start, Direction direction);
|
| ~TwoStepEdgeCycler();
|
|
|
| // Update which mode should be used as a result of a mouse / touch move.
|
| @@ -41,6 +44,15 @@ class ASH_EXPORT TwoStepEdgeCycler {
|
| // Initial x-coordinate.
|
| int start_x_;
|
|
|
| + // x-coordinate when paused.
|
| + int paused_x_;
|
| +
|
| + // Whether the movement was paused.
|
| + bool paused_;
|
| +
|
| + // Determines a preferred movement direction that we are watching.
|
| + Direction direction_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(TwoStepEdgeCycler);
|
| };
|
|
|
|
|