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

Unified Diff: chrome/browser/ui/toolbar/action_box_button_controller.h

Issue 11073009: Include individual share intents in the action box and allow direct triggering without an intermedi… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: addressing review nits Created 8 years, 2 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
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/toolbar/action_box_button_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..13872e08e478060a66db8bb17edc8441ad37803b 100644
--- a/chrome/browser/ui/toolbar/action_box_button_controller.h
+++ b/chrome/browser/ui/toolbar/action_box_button_controller.h
@@ -68,10 +68,21 @@ class ActionBoxButtonController : public ui::SimpleMenuModel::Delegate,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ // 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 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_;
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/toolbar/action_box_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698