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

Side by Side Diff: chrome/browser/extensions/context_menu_matcher.h

Issue 470693003: Cleanup: Remove more unneeded ifdefs in chrome/browser/extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/context_menu_matcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_CONTEXT_MENU_MATCHER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CONTEXT_MENU_MATCHER_H_
6 #define CHROME_BROWSER_EXTENSIONS_CONTEXT_MENU_MATCHER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CONTEXT_MENU_MATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 content::WebContents* web_contents, 65 content::WebContents* web_contents,
66 const content::ContextMenuParams& params); 66 const content::ContextMenuParams& params);
67 67
68 private: 68 private:
69 friend class ::ExtensionContextMenuBrowserTest; 69 friend class ::ExtensionContextMenuBrowserTest;
70 70
71 bool GetRelevantExtensionTopLevelItems( 71 bool GetRelevantExtensionTopLevelItems(
72 const MenuItem::ExtensionKey& extension_key, 72 const MenuItem::ExtensionKey& extension_key,
73 const Extension** extension, 73 const Extension** extension,
74 bool* can_cross_incognito, 74 bool* can_cross_incognito,
75 MenuItem::List& items); 75 MenuItem::List* items);
76 76
77 MenuItem::List GetRelevantExtensionItems( 77 MenuItem::List GetRelevantExtensionItems(
78 const MenuItem::List& items, 78 const MenuItem::List& items,
79 bool can_cross_incognito); 79 bool can_cross_incognito);
80 80
81 // Used for recursively adding submenus of extension items. 81 // Used for recursively adding submenus of extension items.
82 void RecursivelyAppendExtensionItems(const MenuItem::List& items, 82 void RecursivelyAppendExtensionItems(const MenuItem::List& items,
83 bool can_cross_incognito, 83 bool can_cross_incognito,
84 const base::string16& selection_text, 84 const base::string16& selection_text,
85 ui::SimpleMenuModel* menu_model, 85 ui::SimpleMenuModel* menu_model,
(...skipping 17 matching lines...) Expand all
103 103
104 // Keep track of and clean up menu models for submenus. 104 // Keep track of and clean up menu models for submenus.
105 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; 105 ScopedVector<ui::SimpleMenuModel> extension_menu_models_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(ContextMenuMatcher); 107 DISALLOW_COPY_AND_ASSIGN(ContextMenuMatcher);
108 }; 108 };
109 109
110 } // namespace extensions 110 } // namespace extensions
111 111
112 #endif // CHROME_BROWSER_EXTENSIONS_CONTEXT_MENU_MATCHER_H_ 112 #endif // CHROME_BROWSER_EXTENSIONS_CONTEXT_MENU_MATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/context_menu_matcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698