| 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
|
|
|
|
|