Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: services/ui/clipboard/clipboard_impl.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/clipboard/clipboard_impl.h ('k') | services/ui/clipboard/clipboard_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "components/mus/clipboard/clipboard_impl.h" 5 #include "services/ui/clipboard/clipboard_impl.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "mojo/common/common_type_converters.h" 11 #include "mojo/common/common_type_converters.h"
12 #include "mojo/public/cpp/bindings/array.h" 12 #include "mojo/public/cpp/bindings/array.h"
13 #include "mojo/public/cpp/bindings/string.h" 13 #include "mojo/public/cpp/bindings/string.h"
14 14
15 using mojo::Array; 15 using mojo::Array;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 Clipboard::Type clipboard_type, 99 Clipboard::Type clipboard_type,
100 Map<String, Array<uint8_t>> data, 100 Map<String, Array<uint8_t>> data,
101 const WriteClipboardDataCallback& callback) { 101 const WriteClipboardDataCallback& callback) {
102 int clipboard_num = static_cast<int>(clipboard_type); 102 int clipboard_num = static_cast<int>(clipboard_type);
103 clipboard_state_[clipboard_num]->SetData(std::move(data)); 103 clipboard_state_[clipboard_num]->SetData(std::move(data));
104 callback.Run(clipboard_state_[clipboard_num]->sequence_number()); 104 callback.Run(clipboard_state_[clipboard_num]->sequence_number());
105 } 105 }
106 106
107 } // namespace clipboard 107 } // namespace clipboard
108 } // namespace mus 108 } // namespace mus
OLDNEW
« no previous file with comments | « services/ui/clipboard/clipboard_impl.h ('k') | services/ui/clipboard/clipboard_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698