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

Unified Diff: ppapi/cpp/extensions/event_base.cc

Issue 103093004: Remove PPB_Ext_Alarms_Dev and PPB_Ext_Events_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/extensions/event_base.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/extensions/event_base.cc
diff --git a/ppapi/cpp/extensions/event_base.cc b/ppapi/cpp/extensions/event_base.cc
deleted file mode 100644
index 210b213d0e35353bcd451622fd3f737a8758132a..0000000000000000000000000000000000000000
--- a/ppapi/cpp/extensions/event_base.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2013 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/extensions/event_base.h"
-
-#include "ppapi/cpp/extensions/dev/events_dev.h"
-
-namespace pp {
-namespace ext {
-namespace internal {
-
-GenericEventBase::GenericEventBase(
- const InstanceHandle& instance,
- const PP_Ext_EventListener& pp_listener)
- : instance_(instance),
- listener_id_(0),
- pp_listener_(pp_listener) {
-}
-
-GenericEventBase::~GenericEventBase() {
- StopListening();
-}
-
-bool GenericEventBase::StartListening() {
- if (IsListening())
- return true;
-
- listener_id_ = events::Events_Dev::AddListener(instance_.pp_instance(),
- pp_listener_);
- return IsListening();
-}
-
-void GenericEventBase::StopListening() {
- if (!IsListening())
- return;
-
- events::Events_Dev::RemoveListener(instance_.pp_instance(), listener_id_);
- listener_id_ = 0;
-}
-
-} // namespace internal
-} // namespace ext
-} // namespace pp
« no previous file with comments | « ppapi/cpp/extensions/event_base.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698