OLD | NEW |
1 // Copyright (c) 2010 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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 public AutocompleteTextFieldObserver { | 28 public AutocompleteTextFieldObserver { |
29 public: | 29 public: |
30 AutocompleteEditViewMac(AutocompleteEditController* controller, | 30 AutocompleteEditViewMac(AutocompleteEditController* controller, |
31 ToolbarModel* toolbar_model, | 31 ToolbarModel* toolbar_model, |
32 Profile* profile, | 32 Profile* profile, |
33 CommandUpdater* command_updater, | 33 CommandUpdater* command_updater, |
34 AutocompleteTextField* field); | 34 AutocompleteTextField* field); |
35 virtual ~AutocompleteEditViewMac(); | 35 virtual ~AutocompleteEditViewMac(); |
36 | 36 |
37 // Implement the AutocompleteEditView interface. | 37 // Implement the AutocompleteEditView interface. |
38 virtual AutocompleteEditModel* model() { return model_.get(); } | 38 virtual AutocompleteEditModel* model(); |
39 virtual const AutocompleteEditModel* model() const { return model_.get(); } | 39 virtual const AutocompleteEditModel* model() const; |
40 | 40 |
41 virtual void SaveStateToTab(TabContents* tab); | 41 virtual void SaveStateToTab(TabContents* tab); |
42 virtual void Update(const TabContents* tab_for_state_restoring); | 42 virtual void Update(const TabContents* tab_for_state_restoring); |
43 | 43 |
44 virtual void OpenURL(const GURL& url, | 44 virtual void OpenURL(const GURL& url, |
45 WindowOpenDisposition disposition, | 45 WindowOpenDisposition disposition, |
46 PageTransition::Type transition, | 46 PageTransition::Type transition, |
47 const GURL& alternate_nav_url, | 47 const GURL& alternate_nav_url, |
48 size_t selected_line, | 48 size_t selected_line, |
49 const string16& keyword); | 49 const string16& keyword); |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // Was the delete key pressed with an empty selection at the end of the edit? | 214 // Was the delete key pressed with an empty selection at the end of the edit? |
215 bool delete_at_end_pressed_; | 215 bool delete_at_end_pressed_; |
216 | 216 |
217 // The maximum/standard line height for the displayed text. | 217 // The maximum/standard line height for the displayed text. |
218 CGFloat line_height_; | 218 CGFloat line_height_; |
219 | 219 |
220 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); | 220 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); |
221 }; | 221 }; |
222 | 222 |
223 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ | 223 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ |
OLD | NEW |