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

Unified Diff: chrome/browser/ui/cocoa/website_settings/website_settings_utils_cocoa.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/website_settings/website_settings_utils_cocoa.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/website_settings/website_settings_utils_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/website_settings/website_settings_utils_cocoa.mm b/chrome/browser/ui/cocoa/website_settings/website_settings_utils_cocoa.mm
deleted file mode 100644
index e1c566c90efb5b8ae95fb07bde43001c4e64c735..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/website_settings/website_settings_utils_cocoa.mm
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/cocoa/website_settings/website_settings_utils_cocoa.h"
-
-namespace {
-// The amount of horizontal space between the button's title and its arrow icon.
-const CGFloat kButtonTitleRightPadding = 4.0f;
-}
-
-// Determine the size of a popup button with the given title.
-NSSize SizeForWebsiteSettingsButtonTitle(NSPopUpButton* button,
- NSString* title) {
- NSDictionary* textAttributes =
- [[button attributedTitle] attributesAtIndex:0 effectiveRange:NULL];
- NSSize titleSize = [title sizeWithAttributes:textAttributes];
-
- NSRect frame = [button frame];
- NSRect titleRect = [[button cell] titleRectForBounds:frame];
- CGFloat width = titleSize.width + NSWidth(frame) - NSWidth(titleRect);
-
- return NSMakeSize(width + kButtonTitleRightPadding, NSHeight(frame));
-}
« no previous file with comments | « chrome/browser/ui/cocoa/website_settings/website_settings_utils_cocoa.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698