OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ | 5 #ifndef SERVICES_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ |
6 #define SERVICES_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ | 6 #define SERVICES_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ |
7 | 7 |
8 #include <base/memory/scoped_ptr.h> | 8 #include <base/memory/scoped_ptr.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
12 #include "mojo/services/clipboard/public/interfaces/clipboard.mojom.h" | 12 #include "mojo/services/clipboard/interfaces/clipboard.mojom.h" |
13 | 13 |
14 namespace clipboard { | 14 namespace clipboard { |
15 | 15 |
16 // Stub clipboard implementation. | 16 // Stub clipboard implementation. |
17 // | 17 // |
18 // Eventually, we'll actually want to interact with the system clipboard, but | 18 // Eventually, we'll actually want to interact with the system clipboard, but |
19 // that's hard today because the system clipboard is asynchronous (on X11), the | 19 // that's hard today because the system clipboard is asynchronous (on X11), the |
20 // ui::Clipboard interface is synchronous (which is what we'd use), mojo is | 20 // ui::Clipboard interface is synchronous (which is what we'd use), mojo is |
21 // asynchronous across processes, and the WebClipboard interface is synchronous | 21 // asynchronous across processes, and the WebClipboard interface is synchronous |
22 // (which is at least tractable). | 22 // (which is at least tractable). |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // The current clipboard state. This is what is read from. | 56 // The current clipboard state. This is what is read from. |
57 scoped_ptr<ClipboardData> clipboard_state_[kNumClipboards]; | 57 scoped_ptr<ClipboardData> clipboard_state_[kNumClipboards]; |
58 mojo::StrongBinding<mojo::Clipboard> binding_; | 58 mojo::StrongBinding<mojo::Clipboard> binding_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(ClipboardStandaloneImpl); | 60 DISALLOW_COPY_AND_ASSIGN(ClipboardStandaloneImpl); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace clipboard | 63 } // namespace clipboard |
64 | 64 |
65 #endif // SERVICES_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ | 65 #endif // SERVICES_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ |
OLD | NEW |