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

Side by Side Diff: chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h

Issue 9562029: GTK: Draw the correct omnibox state with new tab-to-traverse behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Restack the popup window directly above the browser's toplevel window. 73 // Restack the popup window directly above the browser's toplevel window.
74 void StackWindow(); 74 void StackWindow();
75 75
76 // Convert a y-coordinate to the closest line / result. 76 // Convert a y-coordinate to the closest line / result.
77 size_t LineFromY(int y); 77 size_t LineFromY(int y);
78 78
79 // Accept a line of the results, for example, when the user clicks a line. 79 // Accept a line of the results, for example, when the user clicks a line.
80 void AcceptLine(size_t line, WindowOpenDisposition disposition); 80 void AcceptLine(size_t line, WindowOpenDisposition disposition);
81 81
82 const gfx::Image* IconForMatch(const AutocompleteMatch& match, bool selected); 82 const gfx::Image* IconForMatch(const AutocompleteMatch& match,
83 bool selected,
84 bool is_selected_keyword);
85
86 void GetForMatch(size_t index,
Peter Kasting 2012/03/01 22:02:12 Nit: Maybe this should be named GetVisibleMatchFor
87 const AutocompleteMatch** match,
88 bool* is_selected_keyword);
83 89
84 CHROMEGTK_CALLBACK_1(OmniboxPopupViewGtk, gboolean, HandleMotion, 90 CHROMEGTK_CALLBACK_1(OmniboxPopupViewGtk, gboolean, HandleMotion,
85 GdkEventMotion*); 91 GdkEventMotion*);
86 92
87 CHROMEGTK_CALLBACK_1(OmniboxPopupViewGtk, gboolean, HandleButtonPress, 93 CHROMEGTK_CALLBACK_1(OmniboxPopupViewGtk, gboolean, HandleButtonPress,
88 GdkEventButton*); 94 GdkEventButton*);
89 95
90 CHROMEGTK_CALLBACK_1(OmniboxPopupViewGtk, gboolean, HandleButtonRelease, 96 CHROMEGTK_CALLBACK_1(OmniboxPopupViewGtk, gboolean, HandleButtonRelease,
91 GdkEventButton*); 97 GdkEventButton*);
92 98
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // erroneously ignore the next drag. 142 // erroneously ignore the next drag.
137 bool ignore_mouse_drag_; 143 bool ignore_mouse_drag_;
138 144
139 // Whether our popup is currently open / shown, or closed / hidden. 145 // Whether our popup is currently open / shown, or closed / hidden.
140 bool opened_; 146 bool opened_;
141 147
142 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewGtk); 148 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewGtk);
143 }; 149 };
144 150
145 #endif // CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ 151 #endif // CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698