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

Unified Diff: chrome/browser/cocoa/keyword_editor_cocoa_controller.h

Issue 220040: [Mac] Enable "Edit Search Engines" in Omnibox context menu. (Closed)
Patch Set: nop to make sure I'm logging in. Created 11 years, 2 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/cocoa/keyword_editor_cocoa_controller.h
diff --git a/chrome/browser/cocoa/keyword_editor_cocoa_controller.h b/chrome/browser/cocoa/keyword_editor_cocoa_controller.h
index 5f74a20eea33274857f5e5649afa3baa244d5ce5..213cf78e9e4ed3383c369536da11c40a6095af34 100644
--- a/chrome/browser/cocoa/keyword_editor_cocoa_controller.h
+++ b/chrome/browser/cocoa/keyword_editor_cocoa_controller.h
@@ -55,7 +55,11 @@ class KeywordEditorModelObserver : public TemplateURLModelObserver,
}
@property (readonly) KeywordEditorController* controller;
-- (id)initWithProfile:(Profile*)profile;
+// Show the keyword editor associated with the given profile (or the
+// original profile if this is an incognito profile). If no keyword
+// editor exists for this profile, create one and show it. Any
+// resulting editor releases itself when closed.
++ (void)showKeywordEditor:(Profile*)profile;
// Message forwarded by KeywordEditorModelObserver.
- (void)modelChanged;
@@ -65,3 +69,14 @@ class KeywordEditorModelObserver : public TemplateURLModelObserver,
- (IBAction)makeDefault:(id)sender;
@end
+
+@interface KeywordEditorCocoaController (TestingAPI)
+
+// Instances of this class are managed, use +showKeywordEditor:.
+- (id)initWithProfile:(Profile*)profile;
+
+// Returns a reference to the shared instance for the given profile,
+// or nil if there is none.
++ (KeywordEditorCocoaController*)sharedInstanceForProfile:(Profile*)profile;
+
+@end
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/cocoa/keyword_editor_cocoa_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698