flutter_flutter/sky/shell/ui_delegate.h
Adam Barth c3a78a1796 Remove dependencies on ui/gfx/geometry
We have enough geometry classes kicking around. We don't need the
ui/gfx/geometry types too.
2016-01-26 23:57:20 -08:00

30 lines
836 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/engine/sky_engine.mojom.h"
#include "ui/gfx/native_widget_types.h"
#include "base/callback.h"
namespace sky {
namespace shell {
class UIDelegate {
public:
virtual void ConnectToEngine(mojo::InterfaceRequest<SkyEngine> request) = 0;
virtual void OnOutputSurfaceCreated(const base::Closure& gpu_continuation) = 0;
virtual void OnOutputSurfaceDestroyed(const base::Closure& gpu_continuation) = 0;
protected:
virtual ~UIDelegate();
};
} // namespace shell
} // namespace sky
#endif // SKY_SHELL_UI_DELEGATE_H_