summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/dev/selection_dev.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/cpp/dev/selection_dev.cc')
-rw-r--r--ppapi/cpp/dev/selection_dev.cc44
1 files changed, 0 insertions, 44 deletions
diff --git a/ppapi/cpp/dev/selection_dev.cc b/ppapi/cpp/dev/selection_dev.cc
deleted file mode 100644
index 7e1284b..0000000
--- 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