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

Unified Diff: mojo/services/clipboard/main.cc

Issue 579503003: Revert of mojo: Create a basic clipboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/clipboard/clipboard_standalone_unittest.cc ('k') | mojo/services/html_viewer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/clipboard/main.cc
diff --git a/mojo/services/clipboard/main.cc b/mojo/services/clipboard/main.cc
deleted file mode 100644
index 423aca0bbaa979eabdb2962cc408242530a208eb..0000000000000000000000000000000000000000
--- a/mojo/services/clipboard/main.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/at_exit.h"
-#include "base/base_paths.h"
-#include "base/command_line.h"
-#include "base/files/file_path.h"
-#include "base/message_loop/message_loop.h"
-#include "base/path_service.h"
-#include "mojo/application/application_runner_chromium.h"
-#include "mojo/public/c/system/main.h"
-#include "mojo/public/cpp/application/application_connection.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/application/interface_factory.h"
-#include "mojo/public/cpp/bindings/interface_ptr.h"
-#include "mojo/services/clipboard/clipboard_standalone_impl.h"
-
-class Delegate : public mojo::ApplicationDelegate,
- public mojo::InterfaceFactory<mojo::Clipboard> {
- public:
- Delegate() {}
- virtual ~Delegate() {}
-
- // mojo::ApplicationDelegate implementation.
- virtual bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) OVERRIDE {
- connection->AddService(this);
- return true;
- }
-
- // mojo::InterfaceFactory<mojo::Clipboard> implementation.
- virtual void Create(
- mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::Clipboard> request) OVERRIDE {
- // TODO(erg): Write native implementations of the clipboard. For now, we
- // just build a clipboard which doesn't interact with the system.
- mojo::BindToRequest(new mojo::ClipboardStandaloneImpl(), &request);
- }
-};
-
-MojoResult MojoMain(MojoHandle shell_handle) {
- mojo::ApplicationRunnerChromium runner(new Delegate);
- return runner.Run(shell_handle);
-}
« no previous file with comments | « mojo/services/clipboard/clipboard_standalone_unittest.cc ('k') | mojo/services/html_viewer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698