| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_MUS_CLIPBOARD_CLIPBOARD_IMPL_H_ | 5 #ifndef SERVICES_UI_CLIPBOARD_CLIPBOARD_IMPL_H_ |
| 6 #define COMPONENTS_MUS_CLIPBOARD_CLIPBOARD_IMPL_H_ | 6 #define SERVICES_UI_CLIPBOARD_CLIPBOARD_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "components/mus/public/interfaces/clipboard.mojom.h" | |
| 14 #include "mojo/public/cpp/bindings/binding_set.h" | 13 #include "mojo/public/cpp/bindings/binding_set.h" |
| 14 #include "services/ui/public/interfaces/clipboard.mojom.h" |
| 15 | 15 |
| 16 namespace mus { | 16 namespace mus { |
| 17 namespace clipboard { | 17 namespace clipboard { |
| 18 | 18 |
| 19 // Stub clipboard implementation. | 19 // Stub clipboard implementation. |
| 20 // | 20 // |
| 21 // Eventually, we'll actually want to interact with the system clipboard, but | 21 // Eventually, we'll actually want to interact with the system clipboard, but |
| 22 // that's hard today because the system clipboard is asynchronous (on X11), the | 22 // that's hard today because the system clipboard is asynchronous (on X11), the |
| 23 // ui::Clipboard interface is synchronous (which is what we'd use), mojo is | 23 // ui::Clipboard interface is synchronous (which is what we'd use), mojo is |
| 24 // asynchronous across processes, and the WebClipboard interface is synchronous | 24 // asynchronous across processes, and the WebClipboard interface is synchronous |
| (...skipping 30 matching lines...) Expand all Loading... |
| 55 // The current clipboard state. This is what is read from. | 55 // The current clipboard state. This is what is read from. |
| 56 std::unique_ptr<ClipboardData> clipboard_state_[kNumClipboards]; | 56 std::unique_ptr<ClipboardData> clipboard_state_[kNumClipboards]; |
| 57 mojo::BindingSet<mojom::Clipboard> bindings_; | 57 mojo::BindingSet<mojom::Clipboard> bindings_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(ClipboardImpl); | 59 DISALLOW_COPY_AND_ASSIGN(ClipboardImpl); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace clipboard | 62 } // namespace clipboard |
| 63 } // namespace mus | 63 } // namespace mus |
| 64 | 64 |
| 65 #endif // COMPONENTS_MUS_CLIPBOARD_CLIPBOARD_IMPL_H_ | 65 #endif // SERVICES_UI_CLIPBOARD_CLIPBOARD_IMPL_H_ |
| OLD | NEW |