summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_popup_view_gtk.h
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 16:25:52 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 16:25:52 +0000
commit2c287e07df9be7f12198b204dcfc3af7ca3db51a (patch)
tree54f7d9b0ae1a7b8e7b8c52976b49371d2052e5a3 /chrome/browser/autocomplete/autocomplete_popup_view_gtk.h
parentb8caa3d62f2f5fcac8ceb397561743a5d29858bf (diff)
downloadchromium_src-2c287e07df9be7f12198b204dcfc3af7ca3db51a.zip
chromium_src-2c287e07df9be7f12198b204dcfc3af7ca3db51a.tar.gz
chromium_src-2c287e07df9be7f12198b204dcfc3af7ca3db51a.tar.bz2
Bold matched portions of text in Linux Omnibox.
- Refactor a bunch of the Pango attributes code. - Walk the classifications, and create the pango attributes for the text foreground color and weight (bolding). - Cache the GdkGC and PangoLayout across expose messages. Review URL: http://codereview.chromium.org/75041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_popup_view_gtk.h')
-rwxr-xr-xchrome/browser/autocomplete/autocomplete_popup_view_gtk.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.h b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.h
index f515fa6..199fb23 100755
--- a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.h
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.h
@@ -48,13 +48,18 @@ class AutocompletePopupViewGtk : public AutocompletePopupView {
gboolean HandleExpose(GtkWidget* widget, GdkEventExpose* event);
- PangoFontDescription* font_;
-
scoped_ptr<AutocompletePopupModel> model_;
AutocompleteEditViewGtk* edit_view_;
+ // Our popup window, which is the only widget used, and we paint it on our
+ // own. This widget shouldn't be exposed outside of this class.
GtkWidget* window_;
+ // The graphics context created from the window, cached across exposes.
+ GdkGC* gc_;
+ // The pango layout object created from the window, cached across exposes.
+ PangoLayout* layout_;
+ // Whether our popup is currently open / shown, or closed / hidden.
bool opened_;
DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewGtk);