| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |