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

Unified Diff: ppapi/cpp/private/flash_menu.h

Issue 6253017: Pepper/Flapper: First pass at context menu implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make brettw happier Created 9 years, 11 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/c/private/ppb_flash_menu.h ('k') | ppapi/cpp/private/flash_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/flash_menu.h
diff --git a/ppapi/cpp/private/flash_menu.h b/ppapi/cpp/private/flash_menu.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5d4408a8b605dcc69db12bac806cb7fb9247c68
--- /dev/null
+++ b/ppapi/cpp/private/flash_menu.h
@@ -0,0 +1,36 @@
+// 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.
+
+// TODO(viettrungluu): This (and the .cc file) contain C++ wrappers for some
+// things in ppapi/c/private/ppb_flash_menu.h. This is currently not used in (or
+// even compiled with) Chromium.
+
+#ifndef PPAPI_CPP_PRIVATE_FLASH_MENU_H_
+#define PPAPI_CPP_PRIVATE_FLASH_MENU_H_
+
+#include "ppapi/c/private/ppb_flash_menu.h"
+#include "ppapi/cpp/resource.h"
+
+namespace pp {
+
+class CompletionCallback;
+class Instance;
+class Point;
+
+namespace flash {
+
+class Menu : public Resource {
+ public:
+ // TODO(viettrungluu): Write a proper C++ wrapper of |PP_Flash_Menu|.
+ Menu(const Instance& instance, const struct PP_Flash_Menu* menu_data);
+
+ int32_t Show(const Point& location,
+ int32_t* selected_id,
+ const CompletionCallback& cc);
+};
+
+} // namespace flash
+} // namespace pp
+
+#endif // PPAPI_CPP_PRIVATE_FLASH_H_
« no previous file with comments | « ppapi/c/private/ppb_flash_menu.h ('k') | ppapi/cpp/private/flash_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698