flutter_flutter/shell/ui_delegate.h
Adam Barth 8bdad9784d Port touch-demo.sky to Dart and make it work in SkyShell
We still don't quite handle multitouch correctly, but single touches work now.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/932283002
2015-02-18 16:57:32 -08:00

28 lines
670 B
C++

// 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 SKY_SHELL_UI_DELEGATE_H_
#define SKY_SHELL_UI_DELEGATE_H_
#include "mojo/public/cpp/bindings/interface_request.h"
#include "sky/services/viewport/viewport_observer.mojom.h"
#include "ui/gfx/geometry/size.h"
namespace sky {
namespace shell {
class UIDelegate {
public:
virtual void ConnectToViewportObserver(
mojo::InterfaceRequest<ViewportObserver> request) = 0;
protected:
virtual ~UIDelegate();
};
} // namespace shell
} // namespace sky
#endif // SKY_SHELL_UI_DELEGATE_H_