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

Unified Diff: chrome/browser/autocomplete/autocomplete_popup_view.h

Issue 194110: Convert the AutocompletePopupPositioner into a BubblePositioner in preparatio... (Closed) Base URL: svn://chrome-svn/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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/autocomplete_popup_view.h
===================================================================
--- chrome/browser/autocomplete/autocomplete_popup_view.h (revision 26251)
+++ chrome/browser/autocomplete/autocomplete_popup_view.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -15,9 +15,9 @@
class AutocompleteEditView;
class AutocompletePopupModel;
+class BubblePositioner;
namespace gfx {
class Font;
-class Rect;
}
#if defined(OS_WIN) || defined(OS_LINUX)
class AutocompleteEditViewWin;
@@ -25,18 +25,6 @@
class Profile;
#endif
-// An object in the browser UI can implement this interface to provide display
-// bounds for the autocomplete popup view.
-class AutocompletePopupPositioner {
- public:
- virtual ~AutocompletePopupPositioner() { }
-
- // Returns the bounds at which the popup should be shown, in screen
- // coordinates. The height is ignored, since the popup is sized to its
- // contents automatically.
- virtual gfx::Rect GetPopupBounds() const = 0;
-};
-
class AutocompletePopupView {
public:
virtual ~AutocompletePopupView() { }
@@ -65,7 +53,7 @@
AutocompleteEditView* edit_view,
AutocompleteEditModel* edit_model,
Profile* profile,
- AutocompletePopupPositioner* popup_positioner);
+ const BubblePositioner* bubble_positioner);
#endif
};

Powered by Google App Engine
This is Rietveld 408576698