Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: chrome/browser/autocomplete/autocomplete_popup_view.h

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/app_modal_dialog.h ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "build/build_config.h" 14 #include "build/build_config.h"
15 15
16 class AutocompleteEditView; 16 class AutocompleteEditView;
17 class AutocompletePopupModel; 17 class AutocompletePopupModel;
18 namespace gfx { 18 namespace gfx {
19 class Font; 19 class Font;
20 class Rect; 20 class Rect;
21 } 21 }
22 #if defined(OS_WIN) || defined(OS_LINUX) 22 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)
23 class AutocompleteEditViewWin; 23 class AutocompleteEditViewWin;
24 class AutocompleteEditModel; 24 class AutocompleteEditModel;
25 class Profile; 25 class Profile;
26 #endif 26 #endif
27 27
28 // An object in the browser UI can implement this interface to provide display 28 // An object in the browser UI can implement this interface to provide display
29 // bounds for the autocomplete popup view. 29 // bounds for the autocomplete popup view.
30 class AutocompletePopupPositioner { 30 class AutocompletePopupPositioner {
31 public: 31 public:
32 virtual ~AutocompletePopupPositioner() { } 32 virtual ~AutocompletePopupPositioner() { }
(...skipping 17 matching lines...) Expand all
50 // Redraws the popup window to match any changes in the result set; this may 50 // Redraws the popup window to match any changes in the result set; this may
51 // mean opening or closing the window. 51 // mean opening or closing the window.
52 virtual void UpdatePopupAppearance() = 0; 52 virtual void UpdatePopupAppearance() = 0;
53 53
54 // Paint any pending updates. 54 // Paint any pending updates.
55 virtual void PaintUpdatesNow() = 0; 55 virtual void PaintUpdatesNow() = 0;
56 56
57 // Returns the popup's model. 57 // Returns the popup's model.
58 virtual AutocompletePopupModel* GetModel() = 0; 58 virtual AutocompletePopupModel* GetModel() = 0;
59 59
60 #if defined(OS_WIN) || defined(OS_LINUX) 60 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)
61 // Create a popup view implementation. It may make sense for this to become 61 // Create a popup view implementation. It may make sense for this to become
62 // platform independent eventually. 62 // platform independent eventually.
63 static AutocompletePopupView* CreatePopupView( 63 static AutocompletePopupView* CreatePopupView(
64 const gfx::Font& font, 64 const gfx::Font& font,
65 AutocompleteEditView* edit_view, 65 AutocompleteEditView* edit_view,
66 AutocompleteEditModel* edit_model, 66 AutocompleteEditModel* edit_model,
67 Profile* profile, 67 Profile* profile,
68 AutocompletePopupPositioner* popup_positioner); 68 AutocompletePopupPositioner* popup_positioner);
69 #endif 69 #endif
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_H_ 72 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/app_modal_dialog.h ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698