| Index: ui/touch_selection/touch_selection_controller_aura.h
|
| diff --git a/ui/touch_selection/touch_selection_controller_aura.h b/ui/touch_selection/touch_selection_controller_aura.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8f237520187f01f7c7bf61486bdaadec70e1ef03
|
| --- /dev/null
|
| +++ b/ui/touch_selection/touch_selection_controller_aura.h
|
| @@ -0,0 +1,60 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_AURA_H_
|
| +#define UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_AURA_H_
|
| +
|
| +#include "base/timer/timer.h"
|
| +#include "ui/events/event_handler.h"
|
| +#include "ui/events/event_target.h"
|
| +#include "ui/touch_selection/touch_selection_controller_impl.h"
|
| +
|
| +namespace aura {
|
| +class Window;
|
| +}
|
| +
|
| +namespace ui {
|
| +class MotionEventAura;
|
| +class TouchEvent;
|
| +class TouchSelectionControllerAuraTestApi;
|
| +
|
| +// TODO: remove export
|
| +// Aura implementation of |TouchSelectionController|.
|
| +class UI_TOUCH_SELECTION_EXPORT TouchSelectionControllerAura
|
| + : public TouchSelectionControllerImpl,
|
| + public EventHandler {
|
| + public:
|
| + TouchSelectionControllerAura(
|
| + TouchSelectionControllerClient* client,
|
| + base::TimeDelta tap_timeout,
|
| + float tap_slop,
|
| + bool show_on_tap_for_empty_editable);
|
| +
|
| + ~TouchSelectionControllerAura() override;
|
| +
|
| + private:
|
| + friend class TouchSelectionControllerAuraTestApi;
|
| + class EnvPreTargetHandler;
|
| +
|
| + // TouchSelectionControllerImpl:
|
| + void ActivateInsertion() override;
|
| + void DeactivateInsertion() override;
|
| + void ActivateSelection() override;
|
| + void DeactivateSelection() override;
|
| +
|
| + // EventHandler:
|
| + void OnTouchEvent(TouchEvent* event) override;
|
| + void OnGestureEvent(GestureEvent* event) override;
|
| +
|
| + scoped_ptr<MotionEventAura> motion_event_;
|
| + scoped_ptr<EnvPreTargetHandler> env_pre_target_handler_;
|
| +
|
| + TouchSelectionControllerAuraTestApi* test_api_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerAura);
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_TOUCH_SELECTION_TOUCH_SELECTION_CONTROLLER_AURA_H_
|
|
|