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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_mac.h

Issue 173439: [Mac] The autocomplete popup now gets its position from the toolbar controlle... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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/autocomplete/autocomplete_edit_view_mac.mm » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/scoped_nsobject.h" 11 #include "base/scoped_nsobject.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "chrome/browser/autocomplete/autocomplete.h" 13 #include "chrome/browser/autocomplete/autocomplete.h"
14 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" 14 #include "chrome/browser/autocomplete/autocomplete_edit_view.h"
15 #include "chrome/browser/toolbar_model.h" 15 #include "chrome/browser/toolbar_model.h"
16 #include "chrome/common/page_transition_types.h" 16 #include "chrome/common/page_transition_types.h"
17 #include "webkit/glue/window_open_disposition.h" 17 #include "webkit/glue/window_open_disposition.h"
18 18
19 class AutocompleteEditController; 19 class AutocompleteEditController;
20 @class AutocompleteEditHelper; 20 @class AutocompleteEditHelper;
21 class AutocompleteEditModel; 21 class AutocompleteEditModel;
22 class AutocompletePopupPositioner;
22 class AutocompletePopupViewMac; 23 class AutocompletePopupViewMac;
23 @class AutocompleteTextField; 24 @class AutocompleteTextField;
24 class Clipboard; 25 class Clipboard;
25 class CommandUpdater; 26 class CommandUpdater;
26 class Profile; 27 class Profile;
27 class TabContents; 28 class TabContents;
28 class ToolbarModel; 29 class ToolbarModel;
29 30
30 // Implements AutocompleteEditView on an AutocompleteTextField. 31 // Implements AutocompleteEditView on an AutocompleteTextField.
31 32
32 class AutocompleteEditViewMac : public AutocompleteEditView { 33 class AutocompleteEditViewMac : public AutocompleteEditView {
33 public: 34 public:
34 AutocompleteEditViewMac(AutocompleteEditController* controller, 35 AutocompleteEditViewMac(AutocompleteEditController* controller,
36 AutocompletePopupPositioner* positioner,
35 ToolbarModel* toolbar_model, 37 ToolbarModel* toolbar_model,
36 Profile* profile, 38 Profile* profile,
37 CommandUpdater* command_updater, 39 CommandUpdater* command_updater,
38 AutocompleteTextField* field); 40 AutocompleteTextField* field);
39 virtual ~AutocompleteEditViewMac(); 41 virtual ~AutocompleteEditViewMac();
40 42
41 // Implement the AutocompleteEditView interface. 43 // Implement the AutocompleteEditView interface.
42 // TODO(shess): See if this couldn't be simplified to: 44 // TODO(shess): See if this couldn't be simplified to:
43 // virtual AEM* model() const { ... } 45 // virtual AEM* model() const { ... }
44 virtual AutocompleteEditModel* model() { return model_.get(); } 46 virtual AutocompleteEditModel* model() { return model_.get(); }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 173
172 // Tracking state before and after a possible change for reporting 174 // Tracking state before and after a possible change for reporting
173 // to model_. 175 // to model_.
174 NSRange selection_before_change_; 176 NSRange selection_before_change_;
175 std::wstring text_before_change_; 177 std::wstring text_before_change_;
176 178
177 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); 179 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac);
178 }; 180 };
179 181
180 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 182 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698