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

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: oops 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
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 {
brettw 2011/01/31 18:19:49 Is it really necessary to have C++ wrappers for th
viettrungluu 2011/01/31 19:01:41 It makes the Flapper-side code nicer (e.g., no nee
+ 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_

Powered by Google App Engine
This is Rietveld 408576698