OLD | NEW |
1 // Copyright (c) 2009 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 // This file defines the interface class AutocompleteEditView. Each toolkit | 5 // This file defines the interface class AutocompleteEditView. Each toolkit |
6 // will implement the edit view differently, so that code is inherently | 6 // will implement the edit view differently, so that code is inherently |
7 // platform specific. However, the AutocompleteEditModel needs to do some | 7 // platform specific. However, the AutocompleteEditModel needs to do some |
8 // communication with the view. Since the model is shared between platforms, | 8 // communication with the view. Since the model is shared between platforms, |
9 // we need to define an interface that all view implementations will share. | 9 // we need to define an interface that all view implementations will share. |
10 | 10 |
11 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ | 11 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // Every piece of code that can change the edit should call these functions | 118 // Every piece of code that can change the edit should call these functions |
119 // before and after the change. These functions determine if anything | 119 // before and after the change. These functions determine if anything |
120 // meaningful changed, and do any necessary updating and notification. | 120 // meaningful changed, and do any necessary updating and notification. |
121 virtual void OnBeforePossibleChange() = 0; | 121 virtual void OnBeforePossibleChange() = 0; |
122 // OnAfterPossibleChange() returns true if there was a change that caused it | 122 // OnAfterPossibleChange() returns true if there was a change that caused it |
123 // to call UpdatePopup(). | 123 // to call UpdatePopup(). |
124 virtual bool OnAfterPossibleChange() = 0; | 124 virtual bool OnAfterPossibleChange() = 0; |
125 | 125 |
126 // Returns the gfx::NativeView of the edit view. | 126 // Returns the gfx::NativeView of the edit view. |
127 virtual gfx::NativeView GetNativeView() const = 0; | 127 virtual gfx::NativeView GetNativeView() const = 0; |
128 protected: | |
129 ~AutocompleteEditView() {} | |
130 }; | 128 }; |
131 | 129 |
132 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ | 130 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ |
OLD | NEW |