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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_action_context_menu_controller.mm

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import "chrome/browser/ui/cocoa/extensions/extension_action_context_menu_contro ller.h" 5 #import "chrome/browser/ui/cocoa/extensions/extension_action_context_menu_contro ller.h"
6 6
7 #include "base/strings/sys_string_conversions.h" 7 #include "base/strings/sys_string_conversions.h"
8 #include "chrome/browser/extensions/active_script_controller.h" 8 #include "chrome/browser/extensions/active_script_controller.h"
9 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" 9 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h"
10 #include "chrome/browser/extensions/extension_action_manager.h" 10 #include "chrome/browser/extensions/extension_action_manager.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 keyEquivalent:@""]; 177 keyEquivalent:@""];
178 [item setTarget:self]; 178 [item setTarget:self];
179 } 179 }
180 } 180 }
181 181
182 - (void)onExtensionName:(id)sender { 182 - (void)onExtensionName:(id)sender {
183 GURL url(extension_urls::GetWebstoreItemDetailURLPrefix() + extension_->id()); 183 GURL url(extension_urls::GetWebstoreItemDetailURLPrefix() + extension_->id());
184 OpenURLParams params(url, 184 OpenURLParams params(url,
185 Referrer(), 185 Referrer(),
186 NEW_FOREGROUND_TAB, 186 NEW_FOREGROUND_TAB,
187 content::PAGE_TRANSITION_LINK, 187 ui::PAGE_TRANSITION_LINK,
188 false); 188 false);
189 browser_->OpenURL(params); 189 browser_->OpenURL(params);
190 } 190 }
191 191
192 - (void)onAlwaysRun:(id)sender { 192 - (void)onAlwaysRun:(id)sender {
193 content::WebContents* activeTab = 193 content::WebContents* activeTab =
194 browser_->tab_strip_model()->GetActiveWebContents(); 194 browser_->tab_strip_model()->GetActiveWebContents();
195 if (activeTab) { 195 if (activeTab) {
196 extensions::ActiveScriptController::GetForWebContents(activeTab) 196 extensions::ActiveScriptController::GetForWebContents(activeTab)
197 ->AlwaysRunOnVisibleOrigin(extension_); 197 ->AlwaysRunOnVisibleOrigin(extension_);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 return; 250 return;
251 251
252 [ExtensionPopupController showURL:url 252 [ExtensionPopupController showURL:url
253 inBrowser:browser_ 253 inBrowser:browser_
254 anchoredAt:popupPoint 254 anchoredAt:popupPoint
255 arrowLocation:info_bubble::kTopRight 255 arrowLocation:info_bubble::kTopRight
256 devMode:YES]; 256 devMode:YES];
257 } 257 }
258 258
259 @end 259 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698