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

Unified Diff: chrome/browser/tab_contents/context_menu_utils.h

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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: chrome/browser/tab_contents/context_menu_utils.h
===================================================================
--- chrome/browser/tab_contents/context_menu_utils.h (revision 0)
+++ chrome/browser/tab_contents/context_menu_utils.h (revision 0)
@@ -0,0 +1,34 @@
+// 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.
+
+#ifndef CHROME_BROWSER_TAB_CONTENTS_CONTEXT_MENU_UTILS_H_
+#define CHROME_BROWSER_TAB_CONTENTS_CONTEXT_MENU_UTILS_H_
+#pragma once
+
+#include "chrome/browser/extensions/extension_menu_manager.h"
+#include "webkit/glue/context_menu.h"
+
+class Profile;
+using WebKit::WebContextMenuData;
+
+// Context menu utilities.
+class ContextMenuUtils {
+ public:
+ // Gets document url out of context menu paramaters.
+ static const GURL& GetDocumentURL(const ContextMenuParams& params);
+
+ // Given a list of items, returns the ones that match given the contents
+ // of |params| and the profile.
+ static ExtensionMenuItem::List GetRelevantExtensionItems(
+ const ExtensionMenuItem::List& items,
+ const ContextMenuParams& params,
+ Profile* profile,
+ bool can_cross_incognito);
+
+ private:
+ ContextMenuUtils() {}
+ DISALLOW_COPY_AND_ASSIGN(ContextMenuUtils);
+};
+
+#endif // CHROME_BROWSER_TAB_CONTENTS_CONTEXT_MENU_UTILS_H_
Property changes on: chrome/browser/tab_contents/context_menu_utils.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698