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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 PageTransition::Type transition, | 42 PageTransition::Type transition, |
43 const GURL& alternate_nav_url, | 43 const GURL& alternate_nav_url, |
44 size_t selected_line, | 44 size_t selected_line, |
45 const std::wstring& keyword); | 45 const std::wstring& keyword); |
46 | 46 |
47 virtual std::wstring GetText() const; | 47 virtual std::wstring GetText() const; |
48 | 48 |
49 virtual bool IsEditingOrEmpty() const; | 49 virtual bool IsEditingOrEmpty() const; |
50 virtual int GetIcon() const; | 50 virtual int GetIcon() const; |
51 | 51 |
52 virtual void SetUserText(const std::wstring& text) { | 52 virtual void SetUserText(const std::wstring& text); |
53 SetUserText(text, text, true); | |
54 } | |
55 virtual void SetUserText(const std::wstring& text, | 53 virtual void SetUserText(const std::wstring& text, |
56 const std::wstring& display_text, | 54 const std::wstring& display_text, |
57 bool update_popup); | 55 bool update_popup); |
58 | 56 |
59 virtual void SetWindowTextAndCaretPos(const std::wstring& text, | 57 virtual void SetWindowTextAndCaretPos(const std::wstring& text, |
60 size_t caret_pos); | 58 size_t caret_pos); |
61 | 59 |
62 virtual void SetForcedQuery(); | 60 virtual void SetForcedQuery(); |
63 | 61 |
64 virtual bool IsSelectAll(); | 62 virtual bool IsSelectAll(); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 NSRange selection_before_change_; | 168 NSRange selection_before_change_; |
171 std::wstring text_before_change_; | 169 std::wstring text_before_change_; |
172 | 170 |
173 // The maximum/standard line height for the displayed text. | 171 // The maximum/standard line height for the displayed text. |
174 CGFloat line_height_; | 172 CGFloat line_height_; |
175 | 173 |
176 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); | 174 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); |
177 }; | 175 }; |
178 | 176 |
179 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ | 177 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ |
OLD | NEW |