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/cocoa/website_settings/permission_selector_button.mm

Issue 2744823004: Move cross-platform Page Info UI code to its own folder. (Closed)
Patch Set: Update test build file with changes not caught by mass-rename.py 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/website_settings/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/website_settings/website_settings_utils_cocoa. h"
9 #include "chrome/browser/ui/website_settings/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 {
19 if (self = [super initWithFrame:NSMakeRect(0, 0, 1, 1) pullsDown:NO]) { 19 if (self = [super initWithFrame:NSMakeRect(0, 0, 1, 1) pullsDown:NO]) {
(...skipping 41 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