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

Side by Side Diff: chrome/browser/views/autocomplete/autocomplete_popup_win.h

Issue 79032: Split out the contents view into its own header. rename it to AutocompletePop... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_ 5 #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
6 #define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_ 6 #define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
7 7
8 #include "chrome/browser/autocomplete/autocomplete_popup_view.h" 8 #include "chrome/browser/autocomplete/autocomplete_popup_view.h"
9 #include "chrome/views/widget/widget_win.h" 9 #include "chrome/views/widget/widget_win.h"
10 10
11 class AutocompleteEditModel; 11 class AutocompleteEditModel;
12 class AutocompleteEditViewWin; 12 class AutocompleteEditViewWin;
13 class AutocompletePopupViewContents; 13 class AutocompletePopupContentsView;
14 class Profile; 14 class Profile;
15 15
16 // Interface to retrieve the position of the popup. 16 // Interface to retrieve the position of the popup.
17 class AutocompletePopupPositioner { 17 class AutocompletePopupPositioner {
18 public: 18 public:
19 // Returns the bounds at which the popup should be shown, in screen 19 // Returns the bounds at which the popup should be shown, in screen
20 // coordinates. The height is ignored, since the popup is sized to its 20 // coordinates. The height is ignored, since the popup is sized to its
21 // contents automatically. 21 // contents automatically.
22 virtual gfx::Rect GetPopupBounds() const = 0; 22 virtual gfx::Rect GetPopupBounds() const = 0;
23 }; 23 };
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // The provider of our result set. 62 // The provider of our result set.
63 scoped_ptr<AutocompletePopupModel> model_; 63 scoped_ptr<AutocompletePopupModel> model_;
64 64
65 // The edit view that invokes us. 65 // The edit view that invokes us.
66 AutocompleteEditViewWin* edit_view_; 66 AutocompleteEditViewWin* edit_view_;
67 67
68 // An object that tells the popup how to position itself. 68 // An object that tells the popup how to position itself.
69 AutocompletePopupPositioner* popup_positioner_; 69 AutocompletePopupPositioner* popup_positioner_;
70 70
71 // The view that holds the result views. 71 // The view that holds the result views.
72 AutocompletePopupViewContents* contents_; 72 AutocompletePopupContentsView* contents_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupWin); 74 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupWin);
75 }; 75 };
76 76
77 #endif // #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_ 77 #endif // #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698