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

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

Issue 1543393002: Switch to standard integer types in chrome/browser/ui/cocoa/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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_bubble_controller.h " 5 #import "chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.h "
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/mac/bind_objc_block.h" 9 #include "base/mac/bind_objc_block.h"
10 #include "base/macros.h"
10 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
11 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/browser_finder.h" 14 #include "chrome/browser/ui/browser_finder.h"
14 #include "chrome/browser/ui/browser_window.h" 15 #include "chrome/browser/ui/browser_window.h"
15 #import "chrome/browser/ui/chrome_style.h" 16 #import "chrome/browser/ui/chrome_style.h"
16 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 17 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
17 #import "chrome/browser/ui/cocoa/browser_window_utils.h" 18 #import "chrome/browser/ui/cocoa/browser_window_utils.h"
18 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" 19 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h"
19 #import "chrome/browser/ui/cocoa/hover_close_button.h" 20 #import "chrome/browser/ui/cocoa/hover_close_button.h"
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 614
614 + (void)alignCenterOf:(NSView*)viewA verticallyToCenterOf:(NSView*)viewB { 615 + (void)alignCenterOf:(NSView*)viewA verticallyToCenterOf:(NSView*)viewB {
615 NSRect frameA = [viewA frame]; 616 NSRect frameA = [viewA frame];
616 NSRect frameB = [viewB frame]; 617 NSRect frameB = [viewB frame];
617 frameA.origin.y = 618 frameA.origin.y =
618 NSMinY(frameB) + std::floor((NSHeight(frameB) - NSHeight(frameA)) / 2); 619 NSMinY(frameB) + std::floor((NSHeight(frameB) - NSHeight(frameA)) / 2);
619 [viewA setFrameOrigin:frameA.origin]; 620 [viewA setFrameOrigin:frameA.origin];
620 } 621 }
621 622
622 @end // implementation PermissionBubbleController 623 @end // implementation PermissionBubbleController
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698