| 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 COMPONENTS_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ | 5 #ifndef COMPONENTS_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ |
| 6 #define COMPONENTS_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ | 6 #define COMPONENTS_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ |
| 7 | 7 |
| 8 #include <base/memory/scoped_ptr.h> | 8 #include <stdint.h> |
| 9 |
| 9 #include <string> | 10 #include <string> |
| 10 | 11 |
| 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" |
| 11 #include "components/clipboard/public/interfaces/clipboard.mojom.h" | 14 #include "components/clipboard/public/interfaces/clipboard.mojom.h" |
| 12 #include "mojo/public/cpp/bindings/strong_binding.h" | 15 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 13 | 16 |
| 14 namespace clipboard { | 17 namespace clipboard { |
| 15 | 18 |
| 16 // Stub clipboard implementation. | 19 // Stub clipboard implementation. |
| 17 // | 20 // |
| 18 // 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 |
| 19 // 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 |
| 20 // 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 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // The current clipboard state. This is what is read from. | 56 // The current clipboard state. This is what is read from. |
| 54 scoped_ptr<ClipboardData> clipboard_state_[kNumClipboards]; | 57 scoped_ptr<ClipboardData> clipboard_state_[kNumClipboards]; |
| 55 mojo::StrongBinding<mojo::Clipboard> binding_; | 58 mojo::StrongBinding<mojo::Clipboard> binding_; |
| 56 | 59 |
| 57 DISALLOW_COPY_AND_ASSIGN(ClipboardStandaloneImpl); | 60 DISALLOW_COPY_AND_ASSIGN(ClipboardStandaloneImpl); |
| 58 }; | 61 }; |
| 59 | 62 |
| 60 } // namespace clipboard | 63 } // namespace clipboard |
| 61 | 64 |
| 62 #endif // COMPONENTS_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ | 65 #endif // COMPONENTS_CLIPBOARD_CLIPBOARD_STANDALONE_IMPL_H_ |
| OLD | NEW |