summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
diff options
context:
space:
mode:
authorsuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-06 02:50:54 +0000
committersuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-06 02:50:54 +0000
commit49fd268d76de216574259c2849e28363c1ffbec5 (patch)
tree733f44a4f99d8466284785628b68e84693a5c374 /chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
parentd7f8350075d330a596e6ed6e8eb0380eb4f5ca6c (diff)
downloadchromium_src-49fd268d76de216574259c2849e28363c1ffbec5.zip
chromium_src-49fd268d76de216574259c2849e28363c1ffbec5.tar.gz
chromium_src-49fd268d76de216574259c2849e28363c1ffbec5.tar.bz2
[Linux] Improve LocationBarViewGtk.
This CL improves LocationBarViewGtk: 1. Add type to search hint. 2. Show/hide selected keyword, keyword hint and type to search hint automatically when resizing the browser window. 3. Use weak gray to display hint text, instead of black. BUG=11258 TEST=Resize the browser window when one of selected keyword, keyword hint and type to search hint is visible, to see if the hint can be shown or hidden automatically. Review URL: http://codereview.chromium.org/508008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_gtk.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_gtk.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
index e04e8c3..1d4918c 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
@@ -119,6 +119,13 @@ class AutocompleteEditViewGtk : public AutocompleteEditView,
void SetBaseColor();
+ // Used by LocationBarViewGtk to inform AutocompleteEditViewGtk if the tab to
+ // search should be enabled or not. See the comment of |enable_tab_to_search_|
+ // for details.
+ void set_enable_tab_to_search(bool enable) {
+ enable_tab_to_search_ = enable;
+ }
+
private:
// TODO(deanm): Would be nice to insulate the thunkers better, etc.
static void HandleBeginUserActionThunk(GtkTextBuffer* unused, gpointer self) {
@@ -444,6 +451,11 @@ class AutocompleteEditViewGtk : public AutocompleteEditView,
// is needed.
CharRange strikethrough_;
+ // Indicate if the tab to search should be enabled or not. It's true by
+ // default and will only be set to false if the location bar view is not able
+ // to show the tab to search hint.
+ bool enable_tab_to_search_;
+
DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk);
};