| 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 AutocompletePopupView. Each toolkit | 5 // This file defines the interface class AutocompletePopupView. Each toolkit |
| 6 // will implement the popup view differently, so that code is inheriently | 6 // will implement the popup view differently, so that code is inheriently |
| 7 // platform specific. However, the AutocompletePopupModel needs to do some | 7 // platform specific. However, the AutocompletePopupModel 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_POPUP_VIEW_H_ | 11 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_H_ |
| 12 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_H_ | 12 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_H_ |
| 13 | 13 |
| 14 class AutocompleteEditView; | 14 class AutocompleteEditView; |
| 15 class AutocompletePopupModel; | 15 class AutocompletePopupModel; |
| 16 class ChromeFont; | |
| 17 namespace gfx { | 16 namespace gfx { |
| 17 class Font; |
| 18 class Rect; | 18 class Rect; |
| 19 } | 19 } |
| 20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
| 21 class AutocompleteEditViewWin; | 21 class AutocompleteEditViewWin; |
| 22 class AutocompleteEditModel; | 22 class AutocompleteEditModel; |
| 23 class Profile; | 23 class Profile; |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 // An object in the browser UI can implement this interface to provide display | 26 // An object in the browser UI can implement this interface to provide display |
| 27 // bounds for the autocomplete popup view. | 27 // bounds for the autocomplete popup view. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 53 // Paint any pending updates. | 53 // Paint any pending updates. |
| 54 virtual void PaintUpdatesNow() = 0; | 54 virtual void PaintUpdatesNow() = 0; |
| 55 | 55 |
| 56 // Returns the popup's model. | 56 // Returns the popup's model. |
| 57 virtual AutocompletePopupModel* GetModel() = 0; | 57 virtual AutocompletePopupModel* GetModel() = 0; |
| 58 | 58 |
| 59 #if defined(OS_WIN) | 59 #if defined(OS_WIN) |
| 60 // Create a popup view implementation. It may make sense for this to become | 60 // Create a popup view implementation. It may make sense for this to become |
| 61 // platform independent eventually. | 61 // platform independent eventually. |
| 62 static AutocompletePopupView* CreatePopupView( | 62 static AutocompletePopupView* CreatePopupView( |
| 63 const ChromeFont& font, | 63 const gfx::Font& font, |
| 64 AutocompleteEditViewWin* edit_view, | 64 AutocompleteEditViewWin* edit_view, |
| 65 AutocompleteEditModel* edit_model, | 65 AutocompleteEditModel* edit_model, |
| 66 Profile* profile, | 66 Profile* profile, |
| 67 AutocompletePopupPositioner* popup_positioner); | 67 AutocompletePopupPositioner* popup_positioner); |
| 68 #endif | 68 #endif |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_H_ | 71 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_H_ |
| OLD | NEW |