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

Side by Side Diff: chrome/browser/ui/views/location_bar/action_box_button_view.cc

Issue 10823289: Adding "send to mobile" and "add bookmark" to the action box menu and wiring to their respective ac… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied review comments. Created 8 years, 4 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
« no previous file with comments | « chrome/browser/ui/toolbar/action_box_menu_model.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/ui/views/location_bar/action_box_button_view.h" 5 #include "chrome/browser/ui/views/location_bar/action_box_button_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/command_updater.h" 9 #include "chrome/browser/command_updater.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void ActionBoxButtonView::GetAccessibleState(ui::AccessibleViewState* state) { 74 void ActionBoxButtonView::GetAccessibleState(ui::AccessibleViewState* state) {
75 MenuButton::GetAccessibleState(state); 75 MenuButton::GetAccessibleState(state);
76 state->name = l10n_util::GetStringUTF16(IDS_ACCNAME_ACTION_BOX_BUTTON); 76 state->name = l10n_util::GetStringUTF16(IDS_ACCNAME_ACTION_BOX_BUTTON);
77 } 77 }
78 78
79 void ActionBoxButtonView::OnMenuButtonClicked(View* source, 79 void ActionBoxButtonView::OnMenuButtonClicked(View* source,
80 const gfx::Point& point) { 80 const gfx::Point& point) {
81 ExtensionService* extension_service = 81 ExtensionService* extension_service =
82 extensions::ExtensionSystem::Get(profile_)->extension_service(); 82 extensions::ExtensionSystem::Get(profile_)->extension_service();
83 83
84 ActionBoxMenuModel model(extension_service); 84 ActionBoxMenuModel model(browser_, extension_service);
85 ActionBoxMenu action_box_menu(browser_, &model, starred_); 85 ActionBoxMenu action_box_menu(browser_, &model, starred_);
86 action_box_menu.Init(); 86 action_box_menu.Init();
87 action_box_menu.RunMenu(this); 87 action_box_menu.RunMenu(this);
88 } 88 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/action_box_menu_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698