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

Side by Side Diff: chrome/browser/cocoa/autocomplete_text_field_editor.h

Issue 595017: [Mac] Use the ExtensionToolbarModel for ordering of the Browser Actions. Prep... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove redundant profile object. Created 10 years, 10 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/scoped_nsobject.h" 7 #include "base/scoped_nsobject.h"
8 #import "chrome/browser/cocoa/url_drop_target.h" 8 #import "chrome/browser/cocoa/url_drop_target.h"
9 9
10 class AutocompleteTextFieldObserver; 10 class AutocompleteTextFieldObserver;
11 class Profile;
11 12
12 // AutocompleteTextFieldEditor customized the AutocompletTextField 13 // AutocompleteTextFieldEditor customized the AutocompletTextField
13 // field editor (helper text-view used in editing). It intercepts UI 14 // field editor (helper text-view used in editing). It intercepts UI
14 // events for forwarding to the core Omnibox code. It also undoes 15 // events for forwarding to the core Omnibox code. It also undoes
15 // some of the effects of using styled text in the Omnibox (the text 16 // some of the effects of using styled text in the Omnibox (the text
16 // is styled but should not appear that way when copied to the 17 // is styled but should not appear that way when copied to the
17 // pasteboard). 18 // pasteboard).
18 19
19 // Field editor used for the autocomplete field. 20 // Field editor used for the autocomplete field.
20 @interface AutocompleteTextFieldEditor : NSTextView<URLDropTarget> { 21 @interface AutocompleteTextFieldEditor : NSTextView<URLDropTarget> {
21 // Handles being a drag-and-drop target. We handle DnD directly instead 22 // Handles being a drag-and-drop target. We handle DnD directly instead
22 // allowing the |AutocompletTextField| to handle it (by making an empty 23 // allowing the |AutocompletTextField| to handle it (by making an empty
23 // |-updateDragTypeRegistration|), since the latter results in a weird 24 // |-updateDragTypeRegistration|), since the latter results in a weird
24 // start-up time regression. 25 // start-up time regression.
25 scoped_nsobject<URLDropTargetHandler> dropHandler_; 26 scoped_nsobject<URLDropTargetHandler> dropHandler_;
27
28 // The browser profile for the editor. Weak.
29 Profile* profile_;
26 } 30 }
31
32 @property(nonatomic) Profile* profile;
33
27 @end 34 @end
28 35
29 @interface AutocompleteTextFieldEditor(PrivateTestMethods) 36 @interface AutocompleteTextFieldEditor(PrivateTestMethods)
30 - (AutocompleteTextFieldObserver*)observer; 37 - (AutocompleteTextFieldObserver*)observer;
31 - (void)pasteAndGo:sender; 38 - (void)pasteAndGo:sender;
32 @end 39 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698