mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Some components in the Flutter engine were derived from the forked blink codebase. While the forked components have either been removed or rewritten, the use of the blink namespace has mostly (and inconsistently) remained. This renames the blink namesapce to flutter for consistency. There are no functional changes in this patch.
35 lines
869 B
C++
35 lines
869 B
C++
// Copyright 2013 The Flutter 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 FLUTTER_LIB_UI_WINDOW_POINTER_DATA_PACKET_H_
|
|
#define FLUTTER_LIB_UI_WINDOW_POINTER_DATA_PACKET_H_
|
|
|
|
#include <string.h>
|
|
|
|
#include <vector>
|
|
|
|
#include "flutter/fml/macros.h"
|
|
#include "flutter/lib/ui/window/pointer_data.h"
|
|
|
|
namespace flutter {
|
|
|
|
class PointerDataPacket {
|
|
public:
|
|
explicit PointerDataPacket(size_t count);
|
|
PointerDataPacket(uint8_t* data, size_t num_bytes);
|
|
~PointerDataPacket();
|
|
|
|
void SetPointerData(size_t i, const PointerData& data);
|
|
const std::vector<uint8_t>& data() const { return data_; }
|
|
|
|
private:
|
|
std::vector<uint8_t> data_;
|
|
|
|
FML_DISALLOW_COPY_AND_ASSIGN(PointerDataPacket);
|
|
};
|
|
|
|
} // namespace flutter
|
|
|
|
#endif // FLUTTER_LIB_UI_WINDOW_POINTER_DATA_PACKET_H_
|