| Index: ash/touch/touch_transformer_controller.h
|
| diff --git a/ash/touch/touch_transformer_controller.h b/ash/touch/touch_transformer_controller.h
|
| deleted file mode 100644
|
| index 7abb8ce2b98d6211034a8868b46de7fea8cb82c9..0000000000000000000000000000000000000000
|
| --- a/ash/touch/touch_transformer_controller.h
|
| +++ /dev/null
|
| @@ -1,84 +0,0 @@
|
| -// Copyright 2014 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 ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_
|
| -#define ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_
|
| -
|
| -#include <stdint.h>
|
| -
|
| -#include "ash/ash_export.h"
|
| -#include "ash/display/window_tree_host_manager.h"
|
| -#include "base/gtest_prod_util.h"
|
| -#include "base/macros.h"
|
| -#include "ui/gfx/transform.h"
|
| -
|
| -namespace ui {
|
| -struct TouchscreenDevice;
|
| -} // namespace ui
|
| -
|
| -namespace ash {
|
| -
|
| -// TouchTransformerController listens to display configuration change
|
| -// and updates the touch transformation for touch displays.
|
| -class ASH_EXPORT TouchTransformerController
|
| - : public WindowTreeHostManager::Observer {
|
| - public:
|
| - TouchTransformerController();
|
| - ~TouchTransformerController() override;
|
| -
|
| - // Updates the TouchTransformer for touch device and pushes the new
|
| - // TouchTransformer into device manager.
|
| - void UpdateTouchTransformer() const;
|
| -
|
| - // WindowTreeHostManager::Observer:
|
| - void OnDisplaysInitialized() override;
|
| - void OnDisplayConfigurationChanged() override;
|
| -
|
| - private:
|
| - friend class TouchTransformerControllerTest;
|
| -
|
| - // Returns a transform that will be used to change an event's location from
|
| - // the touchscreen's coordinate system into |display|'s coordinate system.
|
| - // The transform is also responsible for properly scaling the display if the
|
| - // display supports panel fitting.
|
| - //
|
| - // On X11 events are reported in framebuffer coordinate space, so the
|
| - // |framebuffer_size| is used for scaling.
|
| - // On Ozone events are reported in the touchscreen's resolution, so
|
| - // |touch_display| is used to determine the size and scale the event.
|
| - gfx::Transform GetTouchTransform(
|
| - const display::ManagedDisplayInfo& display,
|
| - const display::ManagedDisplayInfo& touch_display,
|
| - const ui::TouchscreenDevice& touchscreen,
|
| - const gfx::Size& framebuffer_size) const;
|
| -
|
| - // Returns the scaling factor for the touch radius such that it scales the
|
| - // radius from |touch_device|'s coordinate system to the |touch_display|'s
|
| - // coordinate system.
|
| - double GetTouchResolutionScale(
|
| - const display::ManagedDisplayInfo& touch_display,
|
| - const ui::TouchscreenDevice& touch_device) const;
|
| -
|
| - // For the provided |display| update the touch radius mapping.
|
| - void UpdateTouchRadius(const display::ManagedDisplayInfo& display) const;
|
| -
|
| - // For a given |target_display| and |target_display_id| update the touch
|
| - // transformation based on the touchscreen associated with |touch_display|.
|
| - // |target_display_id| is the display id whose root window will receive the
|
| - // touch events.
|
| - // |touch_display| is the physical display that has the touchscreen
|
| - // from which the events arrive.
|
| - // |target_display| provides the dimensions to which the touch event will be
|
| - // transformed.
|
| - void UpdateTouchTransform(
|
| - int64_t target_display_id,
|
| - const display::ManagedDisplayInfo& touch_display,
|
| - const display::ManagedDisplayInfo& target_display) const;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(TouchTransformerController);
|
| -};
|
| -
|
| -} // namespace ash
|
| -
|
| -#endif // ASH_TOUCH_TOUCH_TRANSFORMER_CONTROLLER_H_
|
|
|