| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // Returns the favicon of the current page. | 72 // Returns the favicon of the current page. |
| 73 virtual SkBitmap GetFavicon() const = 0; | 73 virtual SkBitmap GetFavicon() const = 0; |
| 74 | 74 |
| 75 // Returns the title of the current page. | 75 // Returns the title of the current page. |
| 76 virtual string16 GetTitle() const = 0; | 76 virtual string16 GetTitle() const = 0; |
| 77 | 77 |
| 78 // Returns the InstantController, or NULL if instant is not enabled. | 78 // Returns the InstantController, or NULL if instant is not enabled. |
| 79 virtual InstantController* GetInstant() = 0; | 79 virtual InstantController* GetInstant() = 0; |
| 80 | 80 |
| 81 // Returns the TabContentsWrapper of the currently selected tab. | 81 // Returns the TabContentsWrapper of the currently selected tab. |
| 82 virtual TabContentsWrapper* GetTabContentsWrapper() = 0; | 82 virtual TabContentsWrapper* GetTabContentsWrapper() const = 0; |
| 83 | 83 |
| 84 protected: | 84 protected: |
| 85 virtual ~AutocompleteEditController(); | 85 virtual ~AutocompleteEditController(); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 class AutocompleteEditModel : public AutocompleteControllerDelegate { | 88 class AutocompleteEditModel : public AutocompleteControllerDelegate { |
| 89 public: | 89 public: |
| 90 struct State { | 90 struct State { |
| 91 State(bool user_input_in_progress, | 91 State(bool user_input_in_progress, |
| 92 const string16& user_text, | 92 const string16& user_text, |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 // It has no effect if a keyword is already selected. | 555 // It has no effect if a keyword is already selected. |
| 556 bool allow_exact_keyword_match_; | 556 bool allow_exact_keyword_match_; |
| 557 | 557 |
| 558 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|. | 558 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|. |
| 559 InstantCompleteBehavior instant_complete_behavior_; | 559 InstantCompleteBehavior instant_complete_behavior_; |
| 560 | 560 |
| 561 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); | 561 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); |
| 562 }; | 562 }; |
| 563 | 563 |
| 564 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ | 564 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ |
| OLD | NEW |