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

Unified Diff: ppapi/cpp/dev/selection_dev.cc

Issue 1161563002: Remove unused in-process pepper APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/dev/selection_dev.h ('k') | ppapi/cpp/dev/widget_client_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/selection_dev.cc
diff --git a/ppapi/cpp/dev/selection_dev.cc b/ppapi/cpp/dev/selection_dev.cc
deleted file mode 100644
index 7e1284bb66fba179eb253ed62bf5f70676173fc9..0000000000000000000000000000000000000000
--- a/ppapi/cpp/dev/selection_dev.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2010 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 "ppapi/cpp/dev/selection_dev.h"
-
-#include "ppapi/cpp/instance.h"
-#include "ppapi/cpp/instance_handle.h"
-#include "ppapi/cpp/module.h"
-#include "ppapi/cpp/var.h"
-
-namespace pp {
-
-namespace {
-
-static const char kPPPSelectionInterface[] = PPP_SELECTION_DEV_INTERFACE;
-
-PP_Var GetSelectedText(PP_Instance instance, PP_Bool html) {
- void* object =
- pp::Instance::GetPerInstanceObject(instance, kPPPSelectionInterface);
- if (!object)
- return Var().Detach();
- return static_cast<Selection_Dev*>(object)->
- GetSelectedText(PP_ToBool(html)).Detach();
-}
-
-const PPP_Selection_Dev ppp_selection = {
- &GetSelectedText
-};
-
-} // namespace
-
-Selection_Dev::Selection_Dev(Instance* instance)
- : associated_instance_(instance) {
- Module::Get()->AddPluginInterface(kPPPSelectionInterface, &ppp_selection);
- instance->AddPerInstanceObject(kPPPSelectionInterface, this);
-}
-
-Selection_Dev::~Selection_Dev() {
- Instance::RemovePerInstanceObject(associated_instance_,
- kPPPSelectionInterface, this);
-}
-
-} // namespace pp
« no previous file with comments | « ppapi/cpp/dev/selection_dev.h ('k') | ppapi/cpp/dev/widget_client_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698