| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlapp.h> | 9 #include <atlapp.h> |
| 10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 // Sets the window text and the caret position. | 517 // Sets the window text and the caret position. |
| 518 void SetWindowTextAndCaretPos(const std::wstring& text, size_t caret_pos); | 518 void SetWindowTextAndCaretPos(const std::wstring& text, size_t caret_pos); |
| 519 | 519 |
| 520 // Returns true if all text is selected. | 520 // Returns true if all text is selected. |
| 521 bool IsSelectAll(); | 521 bool IsSelectAll(); |
| 522 | 522 |
| 523 // Selects all the text in the edit. Use this in place of SetSelAll() to | 523 // Selects all the text in the edit. Use this in place of SetSelAll() to |
| 524 // avoid selecting the "phantom newline" at the end of the edit. | 524 // avoid selecting the "phantom newline" at the end of the edit. |
| 525 void SelectAll(bool reversed); | 525 void SelectAll(bool reversed); |
| 526 | 526 |
| 527 // Deselects all the text in the edit. |
| 528 void DeSelectAll(); |
| 529 |
| 527 // Reverts the edit and popup back to their unedited state (permanent text | 530 // Reverts the edit and popup back to their unedited state (permanent text |
| 528 // showing, popup closed, no user input in progress). | 531 // showing, popup closed, no user input in progress). |
| 529 void RevertAll(); | 532 void RevertAll(); |
| 530 | 533 |
| 531 // Updates the autocomplete popup and other state after the text has been | 534 // Updates the autocomplete popup and other state after the text has been |
| 532 // changed by the user. | 535 // changed by the user. |
| 533 void UpdatePopup(); | 536 void UpdatePopup(); |
| 534 | 537 |
| 535 // Closes the autocomplete popup, if it's open. | 538 // Closes the autocomplete popup, if it's open. |
| 536 void ClosePopup(); | 539 void ClosePopup(); |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 : model_state(model_state), | 919 : model_state(model_state), |
| 917 view_state(view_state) { | 920 view_state(view_state) { |
| 918 } | 921 } |
| 919 | 922 |
| 920 const AutocompleteEditModel::State model_state; | 923 const AutocompleteEditModel::State model_state; |
| 921 const AutocompleteEditView::State view_state; | 924 const AutocompleteEditView::State view_state; |
| 922 }; | 925 }; |
| 923 | 926 |
| 924 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ | 927 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ |
| 925 | 928 |
| OLD | NEW |