| 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..87ba62b8ad04c1b039bc575aeca97e068f601499 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 after a pause 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 movement direction that we are watching after a pause.
|
| + Direction direction_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(TwoStepEdgeCycler);
|
| };
|
|
|
|
|