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

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

Issue 1917013002: Use a different string and icon for chrome-extension pages in Page Info Bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/website_settings/website_settings_ui.h"
10 #include "chrome/browser/ui/website_settings/website_settings_utils.h"
11 #import "ui/base/cocoa/menu_controller.h" 10 #import "ui/base/cocoa/menu_controller.h"
12 11
13 @implementation PermissionSelectorButton 12 @implementation PermissionSelectorButton
14 13
15 - (id)initWithPermissionInfo: 14 - (id)initWithPermissionInfo:
16 (const WebsiteSettingsUI::PermissionInfo&)permissionInfo 15 (const WebsiteSettingsUI::PermissionInfo&)permissionInfo
17 forURL:(const GURL&)url 16 forURL:(const GURL&)url
18 withCallback:(PermissionMenuModel::ChangeCallback)callback { 17 withCallback:(PermissionMenuModel::ChangeCallback)callback {
19 if (self = [super initWithFrame:NSMakeRect(0, 0, 1, 1) pullsDown:NO]) { 18 if (self = [super initWithFrame:NSMakeRect(0, 0, 1, 1) pullsDown:NO]) {
20 [self setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; 19 [self setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 58 }
60 return maxTitleWidth; 59 return maxTitleWidth;
61 } 60 }
62 61
63 // Accessor function for testing only. 62 // Accessor function for testing only.
64 - (NSMenu*)permissionMenu { 63 - (NSMenu*)permissionMenu {
65 return [menuController_ menu]; 64 return [menuController_ menu];
66 } 65 }
67 66
68 @end 67 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698