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_WIN_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 PageTransition::Type transition, | 99 PageTransition::Type transition, |
100 const GURL& alternate_nav_url, | 100 const GURL& alternate_nav_url, |
101 size_t selected_line, | 101 size_t selected_line, |
102 const std::wstring& keyword); | 102 const std::wstring& keyword); |
103 | 103 |
104 virtual std::wstring GetText() const; | 104 virtual std::wstring GetText() const; |
105 | 105 |
106 virtual bool IsEditingOrEmpty() const; | 106 virtual bool IsEditingOrEmpty() const; |
107 virtual int GetIcon() const; | 107 virtual int GetIcon() const; |
108 | 108 |
109 virtual void SetUserText(const std::wstring& text) { | 109 virtual void SetUserText(const std::wstring& text); |
110 SetUserText(text, text, true); | |
111 } | |
112 virtual void SetUserText(const std::wstring& text, | 110 virtual void SetUserText(const std::wstring& text, |
113 const std::wstring& display_text, | 111 const std::wstring& display_text, |
114 bool update_popup); | 112 bool update_popup); |
115 | 113 |
116 virtual void SetWindowTextAndCaretPos(const std::wstring& text, | 114 virtual void SetWindowTextAndCaretPos(const std::wstring& text, |
117 size_t caret_pos); | 115 size_t caret_pos); |
118 | 116 |
119 virtual void SetForcedQuery(); | 117 virtual void SetForcedQuery(); |
120 | 118 |
121 virtual bool IsSelectAll(); | 119 virtual bool IsSelectAll(); |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // striken-out when displaying an insecure scheme. | 516 // striken-out when displaying an insecure scheme. |
519 url_parse::Component insecure_scheme_component_; | 517 url_parse::Component insecure_scheme_component_; |
520 | 518 |
521 // Instance of accessibility information and handling. | 519 // Instance of accessibility information and handling. |
522 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_; | 520 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_; |
523 | 521 |
524 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); | 522 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); |
525 }; | 523 }; |
526 | 524 |
527 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ | 525 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ |
OLD | NEW |