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 // 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 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Every piece of code that can change the edit should call these functions | 121 // Every piece of code that can change the edit should call these functions |
122 // before and after the change. These functions determine if anything | 122 // before and after the change. These functions determine if anything |
123 // meaningful changed, and do any necessary updating and notification. | 123 // meaningful changed, and do any necessary updating and notification. |
124 virtual void OnBeforePossibleChange() = 0; | 124 virtual void OnBeforePossibleChange() = 0; |
125 // OnAfterPossibleChange() returns true if there was a change that caused it | 125 // OnAfterPossibleChange() returns true if there was a change that caused it |
126 // to call UpdatePopup(). | 126 // to call UpdatePopup(). |
127 virtual bool OnAfterPossibleChange() = 0; | 127 virtual bool OnAfterPossibleChange() = 0; |
128 | 128 |
129 // Returns the gfx::NativeView of the edit view. | 129 // Returns the gfx::NativeView of the edit view. |
130 virtual gfx::NativeView GetNativeView() const = 0; | 130 virtual gfx::NativeView GetNativeView() const = 0; |
131 | |
132 // Returns the gfx::NativeView of the edit view that should receive focus when | |
133 // the location bar is focused. | |
134 virtual gfx::NativeView GetFocusNativeView() const = 0; | |
135 }; | 131 }; |
136 | 132 |
137 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ | 133 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ |
OLD | NEW |