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

Side by Side Diff: chrome/browser/ui/cocoa/page_info/split_block_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/split_block_button.h" 5 #import "chrome/browser/ui/cocoa/page_info/split_block_button.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "chrome/grit/generated_resources.h" 11 #include "chrome/grit/generated_resources.h"
12 #include "skia/ext/skia_utils_mac.h" 12 #include "skia/ext/skia_utils_mac.h"
13 #import "ui/base/cocoa/menu_controller.h" 13 #import "ui/base/cocoa/menu_controller.h"
14 #include "ui/base/l10n/l10n_util_mac.h" 14 #include "ui/base/l10n/l10n_util_mac.h"
15 #include "ui/base/models/simple_menu_model.h" 15 #include "ui/base/models/simple_menu_model.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 [super drawBorderAndBackgroundWithFrame:NSOffsetRect(frame, -4, 0) 332 [super drawBorderAndBackgroundWithFrame:NSOffsetRect(frame, -4, 0)
333 inView:controlView]; 333 inView:controlView];
334 } 334 }
335 335
336 - (NSRect)rect { 336 - (NSRect)rect {
337 NSSize size = [self cellSize]; 337 NSSize size = [self cellSize];
338 return NSMakeRect(0, 0, std::ceil(size.width), std::ceil(size.height)); 338 return NSMakeRect(0, 0, std::ceil(size.width), std::ceil(size.height));
339 } 339 }
340 340
341 @end 341 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698