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

Unified Diff: chrome/browser/cocoa/autocomplete_text_field_cell.h

Issue 525098: [Mac] Implements context menus for Page Actions. Introduces a reusable subcla... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Final changes before submit. Created 10 years, 11 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/cocoa/autocomplete_text_field_cell.h
===================================================================
--- chrome/browser/cocoa/autocomplete_text_field_cell.h (revision 36013)
+++ chrome/browser/cocoa/autocomplete_text_field_cell.h (working copy)
@@ -9,6 +9,8 @@
#include "base/scoped_nsobject.h"
#include "chrome/browser/cocoa/location_bar_view_mac.h"
+class ExtensionAction;
+
// AutocompleteTextFieldCell extends StyledTextFieldCell to provide support for
// certain decorations to be applied to the field. These are the search hint
// ("Type to search" on the right-hand side), the keyword hint ("Press [Tab] to
@@ -76,6 +78,10 @@
// given index.
- (NSString*)pageActionToolTipForIndex:(size_t)index;
+// Returns a pointer to the ExtensionAction object that the view at the
+// specified index represents.
+- (ExtensionAction*)pageActionForIndex:(size_t)index;
+
// Called when the Page Action at the given index, whose icon is drawn in the
// iconFrame, is visible and clicked. Passed through to the list of views to
// handle the click.
« no previous file with comments | « chrome/browser/cocoa/autocomplete_text_field.mm ('k') | chrome/browser/cocoa/autocomplete_text_field_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698