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

Unified Diff: chrome/browser/views/autocomplete/autocomplete_popup_gtk.h

Issue 160378: Make TOOLKIT_VIEWS port use views-based Autocomplete popup.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/views/autocomplete/autocomplete_popup_gtk.h
===================================================================
--- chrome/browser/views/autocomplete/autocomplete_popup_gtk.h (revision 0)
+++ chrome/browser/views/autocomplete/autocomplete_popup_gtk.h (revision 0)
@@ -0,0 +1,37 @@
+// 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.
+
+#ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_GTK_H_
+#define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_GTK_H_
+
+#include "views/widget/widget_gtk.h"
+
+class AutocompleteEditView;
+class AutocompletePopupContentsView;
+
+class AutocompletePopupGtk : public views::WidgetGtk {
+ public:
+ explicit AutocompletePopupGtk(AutocompletePopupContentsView* contents);
+ virtual ~AutocompletePopupGtk();
+
+ // Creates the popup and shows it for the first time. |edit_view| is the edit
+ // that created us.
+ void Init(AutocompleteEditView* edit_view, views::View* contents);
+
+ // Shows the popup and moves it to the right position.
+ void Show();
+
+ // Returns true if the popup is open.
+ bool IsOpen() const;
+
+ // Returns true if the popup has been created.
+ bool IsCreated() const;
+
+ private:
+ AutocompletePopupContentsView* contents_;
+
+ DISALLOW_COPY_AND_ASSIGN(AutocompletePopupGtk);
+};
+
+#endif // #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698