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

Side by Side Diff: components/clipboard/clipboard_application_delegate.cc

Issue 1978763003: Readd the clipboard service and get it compiling again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add OWNERS to the interfaces directory. Created 4 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2015 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
5 #include "components/clipboard/clipboard_application_delegate.h"
6
7 #include <utility>
8
9 #include "components/clipboard/clipboard_standalone_impl.h"
10 #include "services/shell/public/cpp/connection.h"
11
12 namespace clipboard {
13
14 ClipboardApplicationDelegate::ClipboardApplicationDelegate() {}
15
16 ClipboardApplicationDelegate::~ClipboardApplicationDelegate() {}
17
18 void ClipboardApplicationDelegate::Initialize(shell::Connector* connector,
19 const shell::Identity& identity,
20 uint32_t id) {
21 tracing_.Initialize(connector, identity.name());
22 }
23
24 bool ClipboardApplicationDelegate::AcceptConnection(
25 shell::Connection* connection) {
26 connection->AddInterface(this);
27 return true;
28 }
29
30 void ClipboardApplicationDelegate::Create(
31 shell::Connection* connection,
32 mojo::ClipboardRequest request) {
33 // TODO(erg): Write native implementations of the clipboard. For now, we
34 // just build a clipboard which doesn't interact with the system.
35 new clipboard::ClipboardStandaloneImpl(std::move(request));
36 }
37
38 } // namespace clipboard
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698