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

Side by Side Diff: chrome/browser/ui/cocoa/page_info/permission_selector_button.mm

Issue 2741933003: Move Cocoa Page Info UI code to its own folder. (Closed)
Patch Set: Fixin' more unit tests BUILD paths (does mass_rename.py just not pick those up? => crbug.com/701529) Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/website_settings/permission_selector_button.h" 5 #import "chrome/browser/ui/cocoa/page_info/permission_selector_button.h"
6 6
7 #include "base/strings/sys_string_conversions.h" 7 #include "base/strings/sys_string_conversions.h"
8 #include "chrome/browser/ui/cocoa/website_settings/website_settings_utils_cocoa. h" 8 #include "chrome/browser/ui/cocoa/page_info/website_settings_utils_cocoa.h"
9 #include "chrome/browser/ui/page_info/website_settings_ui.h" 9 #include "chrome/browser/ui/page_info/website_settings_ui.h"
10 #import "ui/base/cocoa/menu_controller.h" 10 #import "ui/base/cocoa/menu_controller.h"
11 11
12 @implementation PermissionSelectorButton 12 @implementation PermissionSelectorButton
13 13
14 - (id)initWithPermissionInfo: 14 - (id)initWithPermissionInfo:
15 (const WebsiteSettingsUI::PermissionInfo&)permissionInfo 15 (const WebsiteSettingsUI::PermissionInfo&)permissionInfo
16 forURL:(const GURL&)url 16 forURL:(const GURL&)url
17 withCallback:(PermissionMenuModel::ChangeCallback)callback 17 withCallback:(PermissionMenuModel::ChangeCallback)callback
18 profile:(Profile*)profile { 18 profile:(Profile*)profile {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 return maxTitleWidth; 62 return maxTitleWidth;
63 } 63 }
64 64
65 // Accessor function for testing only. 65 // Accessor function for testing only.
66 - (NSMenu*)permissionMenu { 66 - (NSMenu*)permissionMenu {
67 return [menuController_ menu]; 67 return [menuController_ menu];
68 } 68 }
69 69
70 @end 70 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698