clipboard_stub.h 976 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // Interface for an object that receives clipboard events.
  5. // This interface handles some event messages defined in event.proto.
  6. #ifndef REMOTING_PROTOCOL_CLIPBOARD_STUB_H_
  7. #define REMOTING_PROTOCOL_CLIPBOARD_STUB_H_
  8. namespace remoting {
  9. namespace protocol {
  10. class ClipboardEvent;
  11. class ClipboardStub {
  12. public:
  13. ClipboardStub() {}
  14. ClipboardStub(const ClipboardStub&) = delete;
  15. ClipboardStub& operator=(const ClipboardStub&) = delete;
  16. virtual ~ClipboardStub() {}
  17. // Implementations must not assume the presence of |event|'s fields, nor that
  18. // |event.data| is correctly encoded according to the specified MIME-type.
  19. virtual void InjectClipboardEvent(const ClipboardEvent& event) = 0;
  20. };
  21. } // namespace protocol
  22. } // namespace remoting
  23. #endif // REMOTING_PROTOCOL_CLIPBOARD_STUB_H_