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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_
7
8 #include <gtk/gtk.h>
9
10 #include <string>
11
12 #include "base/basictypes.h"
13 #include "base/scoped_ptr.h"
14 #include "chrome/browser/autocomplete/autocomplete.h"
15 #include "chrome/browser/autocomplete/autocomplete_popup_view.h"
16 #include "webkit/glue/window_open_disposition.h"
17
18 class AutocompletePopupModel;
19 class AutocompleteEditModel;
20 class AutocompleteEditViewGtk;
21 class Profile;
22 class SkBitmap;
23
24 class AutocompletePopupViewGtk : public AutocompletePopupView {
25 public:
26 AutocompletePopupViewGtk(AutocompleteEditViewGtk* edit_view,
27 AutocompleteEditModel* edit_model,
28 Profile* profile);
29 ~AutocompletePopupViewGtk();
30
31 // Implement the AutocompletePopupView interface.
32 virtual bool IsOpen() const { return opened_; }
33 virtual void InvalidateLine(size_t line);
34 virtual void UpdatePopupAppearance();
35 virtual void OnHoverEnabledOrDisabled(bool disabled);
36 virtual void PaintUpdatesNow();
37
38 AutocompletePopupModel* model() { return model_.get(); }
39
40 private:
41 void Show();
42 void Hide();
43
44 scoped_ptr<AutocompletePopupModel> model_;
45 AutocompleteEditViewGtk* edit_view_;
46
47 GtkWidget* window_;
48 GtkWidget* vbox_;
49
50 bool opened_;
51
52 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewGtk);
53 };
54
55 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_
OLDNEW
« 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