| Index: blimp/client/app/linux/blimp_display_manager.h
|
| diff --git a/blimp/client/app/linux/blimp_display_manager.h b/blimp/client/app/linux/blimp_display_manager.h
|
| deleted file mode 100644
|
| index 450656b2e872881c654606bfb9d60bc15a41d52d..0000000000000000000000000000000000000000
|
| --- a/blimp/client/app/linux/blimp_display_manager.h
|
| +++ /dev/null
|
| @@ -1,95 +0,0 @@
|
| -// 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 BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_
|
| -#define BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_
|
| -
|
| -#include <memory>
|
| -
|
| -#include "base/macros.h"
|
| -#include "ui/events/event.h"
|
| -#include "ui/events/gestures/motion_event_aura.h"
|
| -#include "ui/platform_window/platform_window_delegate.h"
|
| -
|
| -namespace gfx {
|
| -class Size;
|
| -}
|
| -
|
| -namespace ui {
|
| -class PlatformEventSource;
|
| -class PlatformWindow;
|
| -}
|
| -
|
| -namespace blimp {
|
| -namespace client {
|
| -
|
| -class BrowserCompositor;
|
| -class BlimpContents;
|
| -class CompositorDependencies;
|
| -
|
| -class BlimpDisplayManagerDelegate {
|
| - public:
|
| - virtual void OnClosed() = 0;
|
| -};
|
| -
|
| -// Manages an X11 window that interacts with a Compositor by listening to the
|
| -// window's event handlers
|
| -class BlimpDisplayManager : public ui::PlatformWindowDelegate {
|
| - public:
|
| - // |delegate|: The delegate to receive the OnClosed call.
|
| - // |compositor_dependencies|: Set of compositor dependencies provided by the
|
| - // embedder.
|
| - BlimpDisplayManager(BlimpDisplayManagerDelegate* delegate,
|
| - CompositorDependencies* compositor_dependencies);
|
| - ~BlimpDisplayManager() override;
|
| -
|
| - void SetWindowSize(const gfx::Size& window_size);
|
| - void SetBlimpContents(std::unique_ptr<BlimpContents> contents);
|
| -
|
| - // ui::PlatformWindowDelegate implementation.
|
| - void OnBoundsChanged(const gfx::Rect& new_bounds) override;
|
| - void OnDamageRect(const gfx::Rect& damaged_region) override {}
|
| - void DispatchEvent(ui::Event* event) override;
|
| - void OnCloseRequest() override;
|
| - void OnClosed() override;
|
| - void OnWindowStateChanged(ui::PlatformWindowState new_state) override {}
|
| - void OnLostCapture() override {}
|
| - void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
|
| - float device_pixel_ratio) override;
|
| - void OnAcceleratedWidgetDestroyed() override;
|
| - void OnActivationChanged(bool active) override {}
|
| -
|
| - private:
|
| - // Dispatch a given mouse event as a touch event.
|
| - void DispatchMouseEvent(ui::MouseEvent* mouse_event);
|
| -
|
| - // Dispatch a given mousewheel scroll event as a pinch/zoom touch event.
|
| - void DispatchMouseWheelEvent(ui::MouseWheelEvent* mouse_event);
|
| -
|
| - // Dispatch a given touch event as part of a stream of touch events.
|
| - void DispatchMotionEventAura(ui::MotionEventAura* touch_event_stream,
|
| - ui::EventType event_type,
|
| - int pointer_id,
|
| - int pointer_x,
|
| - int pointer_y);
|
| -
|
| - // Simulate a pinch/zoom touch event.
|
| - void Zoom(int pointer_x, int pointer_y, int y_offset, bool zoom_out);
|
| -
|
| - float device_pixel_ratio_;
|
| -
|
| - BlimpDisplayManagerDelegate* delegate_;
|
| -
|
| - std::unique_ptr<BrowserCompositor> compositor_;
|
| - std::unique_ptr<BlimpContents> contents_;
|
| - std::unique_ptr<ui::PlatformEventSource> platform_event_source_;
|
| - std::unique_ptr<ui::PlatformWindow> platform_window_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(BlimpDisplayManager);
|
| -};
|
| -
|
| -} // namespace client
|
| -} // namespace blimp
|
| -
|
| -#endif // BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_
|
|
|