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

Unified Diff: webkit/plugins/ppapi/ppb_talk_private_impl.cc

Issue 9683003: Aura: Show dialog box asking user's permisssion for screen sharing for gtalk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 9 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
Index: webkit/plugins/ppapi/ppb_talk_private_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_talk_private_impl.cc b/webkit/plugins/ppapi/ppb_talk_private_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3bb9d16e4739fcdad9cc65fb63b551327428b668
--- /dev/null
+++ b/webkit/plugins/ppapi/ppb_talk_private_impl.cc
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 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 "webkit/plugins/ppapi/ppb_talk_private_impl.h"
+
+#include "ppapi/c/private/ppb_talk_private.h"
+#include "webkit/plugins/ppapi/host_globals.h"
+#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
+
+using ppapi::thunk::PPB_Talk_Private_API;
+
+namespace webkit {
+namespace ppapi {
+
+PPB_Talk_Private_Impl::PPB_Talk_Private_Impl(PP_Instance instance)
+ : ::ppapi::Resource(::ppapi::OBJECT_IS_IMPL, instance) {
+}
+
+PPB_Talk_Private_Impl::~PPB_Talk_Private_Impl() {
+}
+
+int32_t PPB_Talk_Private_Impl::GetPermission(
+ const PP_CompletionCallback& callback) {
+ // Not implemented on the host side.
+ NOTREACHED();
+ return PP_ERROR_FAILED;
+}
+
+int PPB_Talk_Private_Impl::GetRendererId() {
+ PluginInstance* instance = HostGlobals::Get()->GetInstance(pp_instance());
+ if (instance)
+ return instance->delegate()->GetRendererId();
+ return 0;
+}
+
+} // namespace ppapi
+} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698