| Index: chrome/browser/ui/toolbar/action_box_button_controller.h
|
| diff --git a/chrome/browser/ui/toolbar/action_box_button_controller.h b/chrome/browser/ui/toolbar/action_box_button_controller.h
|
| index 45c56928f63afcbe1c648200a9d16b08762bb0bb..94c8afa449f3bf189266d19fb09b5e13c149a324 100644
|
| --- a/chrome/browser/ui/toolbar/action_box_button_controller.h
|
| +++ b/chrome/browser/ui/toolbar/action_box_button_controller.h
|
| @@ -68,17 +68,40 @@ class ActionBoxButtonController : public ui::SimpleMenuModel::Delegate,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) OVERRIDE;
|
|
|
| + // Called by the WebIntentsRegistry, returning |services|, which is
|
| + // a list of WebIntentServiceData matching the query.
|
| + // Used to populate the menu with share intents on load.
|
| + void OnWebIntentServicesAvailable(
|
| + const std::vector<webkit_glue::WebIntentServiceData>& services);
|
| +
|
| + // Handles "share with X" commands.
|
| + void TriggerExplicitShareIntent(const GURL& share_service_url);
|
| +
|
| + // Handles the "Find places to share" command. Navigates the browser to the
|
| + // web store to find extensions with share intents.
|
| + void NavigateToWebStoreShareIntentsList();
|
| +
|
| Browser* browser_;
|
|
|
| Delegate* delegate_;
|
|
|
| // The command ID to assign to the next extension that needs one.
|
| + int next_share_intent_command_id_;
|
| +
|
| + // The share service strings that have commands associated with them.
|
| + typedef std::map<int, GURL> ShareIntentServiceCommandMap;
|
| + ShareIntentServiceCommandMap share_intent_service_ids_;
|
| +
|
| + // The command ID to assign to the next extension that needs one.
|
| int next_extension_command_id_;
|
|
|
| // The extension IDs that have commands associated with them.
|
| typedef std::map<std::string, int> ExtensionIdCommandMap;
|
| ExtensionIdCommandMap extension_command_ids_;
|
|
|
| + // Weak pointers used for bind()ing intent service callbacks.
|
| + base::WeakPtrFactory<ActionBoxButtonController> weak_ptr_factory_;
|
| +
|
| content::NotificationRegistrar registrar_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonController);
|
|
|