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

Side by Side Diff: chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.mm

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/profile_signin_confirmation_view_controller.h" 5 #import "chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 14 matching lines...) Expand all
25 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
26 #include "skia/ext/skia_utils_mac.h" 26 #include "skia/ext/skia_utils_mac.h"
27 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 27 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
28 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" 28 #import "ui/base/cocoa/controls/hyperlink_button_cell.h"
29 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
30 30
31 namespace { 31 namespace {
32 32
33 const CGFloat kWindowMinWidth = 500; 33 const CGFloat kWindowMinWidth = 500;
34 const CGFloat kButtonGap = 6; 34 const CGFloat kButtonGap = 6;
35 const SkColor kDialogAlertBarBackgroundColor = 0xFFF6F6F6;
36 const SkColor kDialogAlertBarBorderColor = 0xFFE1E1E1;
37 const CGFloat kDialogAlertBarBorderWidth = 1; 35 const CGFloat kDialogAlertBarBorderWidth = 1;
38 36
39 // Shift the origin of |view|'s frame by the given amount in the 37 // Shift the origin of |view|'s frame by the given amount in the
40 // positive y direction (up). 38 // positive y direction (up).
41 void ShiftOriginY(NSView* view, CGFloat amount) { 39 void ShiftOriginY(NSView* view, CGFloat amount) {
42 NSPoint origin = [view frame].origin; 40 NSPoint origin = [view frame].origin;
43 origin.y += amount; 41 origin.y += amount;
44 [view setFrameOrigin:origin]; 42 [view setFrameOrigin:origin];
45 } 43 }
46 44
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 462
465 - (NSButton*)createProfileButton { 463 - (NSButton*)createProfileButton {
466 return createProfileButton_.get(); 464 return createProfileButton_.get();
467 } 465 }
468 466
469 - (NSTextView*)explanationField { 467 - (NSTextView*)explanationField {
470 return explanationField_.get(); 468 return explanationField_.get();
471 } 469 }
472 470
473 @end 471 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698