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

Unified Diff: chrome/test/data/extensions/platform_apps/context_menu/test.js

Issue 8834008: Hide default context menu for platform apps. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved code out of Browser Created 9 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
Index: chrome/test/data/extensions/platform_apps/context_menu/test.js
diff --git a/chrome/test/data/extensions/platform_apps/context_menu/test.js b/chrome/test/data/extensions/platform_apps/context_menu/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..71a31a88a2b8e6567e14e663e7c1ea5f22b18f16
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/context_menu/test.js
@@ -0,0 +1,15 @@
+// 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.
+
+function onclick(info) {
+}
+
+window.onload = function() {
+ chrome.contextMenus.create({"title":"Extension Item 1",
+ "onclick": onclick}, function() {
+ if (!chrome.extension.lastError) {
+ chrome.test.sendMessage("created item");
+ }
+ });
+};

Powered by Google App Engine
This is Rietveld 408576698