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

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

Issue 670463004: Make a platform-independent ToolbarActionViewController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (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 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle r.h" 5 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle r.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/mac/bundle_locations.h" 8 #include "base/mac/bundle_locations.h"
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 case extension_installed_bubble::kOmniboxKeyword: { 253 case extension_installed_bubble::kOmniboxKeyword: {
254 LocationBarViewMac* locationBarView = 254 LocationBarViewMac* locationBarView =
255 [window->cocoa_controller() locationBarBridge]; 255 [window->cocoa_controller() locationBarBridge];
256 arrowPoint = locationBarView->GetPageInfoBubblePoint(); 256 arrowPoint = locationBarView->GetPageInfoBubblePoint();
257 break; 257 break;
258 } 258 }
259 case extension_installed_bubble::kBrowserAction: { 259 case extension_installed_bubble::kBrowserAction: {
260 BrowserActionsController* controller = 260 BrowserActionsController* controller =
261 [[window->cocoa_controller() toolbarController] 261 [[window->cocoa_controller() toolbarController]
262 browserActionsController]; 262 browserActionsController];
263 arrowPoint = [controller popupPointForBrowserAction:extension_]; 263 arrowPoint = [controller popupPointForId:extension_->id()];
264 break; 264 break;
265 } 265 }
266 case extension_installed_bubble::kPageAction: { 266 case extension_installed_bubble::kPageAction: {
267 LocationBarViewMac* locationBarView = 267 LocationBarViewMac* locationBarView =
268 [window->cocoa_controller() locationBarBridge]; 268 [window->cocoa_controller() locationBarBridge];
269 269
270 ExtensionAction* page_action = 270 ExtensionAction* page_action =
271 extensions::ExtensionActionManager::Get(browser_->profile())-> 271 extensions::ExtensionActionManager::Get(browser_->profile())->
272 GetPageAction(*extension_); 272 GetPageAction(*extension_);
273 273
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 install_ui->OpenAppInstalledUI(extension_->id()); 700 install_ui->OpenAppInstalledUI(extension_->id());
701 } 701 }
702 702
703 - (void)awakeFromNib { 703 - (void)awakeFromNib {
704 if (bundle_) 704 if (bundle_)
705 return; 705 return;
706 [self initializeLabel]; 706 [self initializeLabel];
707 } 707 }
708 708
709 @end 709 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698