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

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

Issue 40013: Implement a GTK LocationBarView and Autocomplete. (Closed)
Patch Set: Feedback Created 11 years, 9 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_gtk.h
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.h b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.h
new file mode 100755
index 0000000000000000000000000000000000000000..3c4fcc8a3952c0807d243480c9dce6de3a27f86f
--- /dev/null
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.h
@@ -0,0 +1,55 @@
+// 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_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_
+#define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_
+
+#include <gtk/gtk.h>
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/scoped_ptr.h"
+#include "chrome/browser/autocomplete/autocomplete.h"
+#include "chrome/browser/autocomplete/autocomplete_popup_view.h"
+#include "webkit/glue/window_open_disposition.h"
+
+class AutocompletePopupModel;
+class AutocompleteEditModel;
+class AutocompleteEditViewGtk;
+class Profile;
+class SkBitmap;
+
+class AutocompletePopupViewGtk : public AutocompletePopupView {
+ public:
+ AutocompletePopupViewGtk(AutocompleteEditViewGtk* edit_view,
+ AutocompleteEditModel* edit_model,
+ Profile* profile);
+ ~AutocompletePopupViewGtk();
+
+ // Implement the AutocompletePopupView interface.
+ virtual bool IsOpen() const { return opened_; }
+ virtual void InvalidateLine(size_t line);
+ virtual void UpdatePopupAppearance();
+ virtual void OnHoverEnabledOrDisabled(bool disabled);
+ virtual void PaintUpdatesNow();
+
+ AutocompletePopupModel* model() { return model_.get(); }
+
+ private:
+ void Show();
+ void Hide();
+
+ scoped_ptr<AutocompletePopupModel> model_;
+ AutocompleteEditViewGtk* edit_view_;
+
+ GtkWidget* window_;
+ GtkWidget* vbox_;
+
+ bool opened_;
+
+ DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewGtk);
+};
+
+#endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc ('k') | chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698