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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_main_container.mm

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/autofill/autofill_main_container.h" 5 #import "chrome/browser/ui/cocoa/autofill/autofill_main_container.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/mac/foundation_util.h" 10 #include "base/mac/foundation_util.h"
11 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" 12 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
13 #include "chrome/browser/ui/chrome_style.h" 13 #include "chrome/browser/ui/chrome_style.h"
14 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h" 14 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h"
15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" 15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h"
16 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h" 16 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h"
17 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h" 17 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_container.h"
18 #import "chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h" 18 #import "chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h"
19 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" 19 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h"
20 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h" 20 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h"
21 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
22 #include "grit/theme_resources.h" 22 #include "grit/theme_resources.h"
23 #include "skia/ext/skia_utils_mac.h" 23 #include "skia/ext/skia_utils_mac.h"
24 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw eaker.h" 24 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw eaker.h"
25 #import "ui/base/cocoa/controls/blue_label_button.h" 25 #import "ui/base/cocoa/controls/blue_label_button.h"
26 #include "ui/base/cocoa/window_size_constants.h" 26 #include "ui/base/cocoa/window_size_constants.h"
27 #include "ui/base/l10n/l10n_util.h"
28 #include "ui/gfx/range/range.h" 27 #include "ui/gfx/range/range.h"
29 28
30 namespace { 29 namespace {
31 30
32 // Padding between buttons and the last suggestion or details view. The mock 31 // Padding between buttons and the last suggestion or details view. The mock
33 // has a total of 30px - but 10px are already provided by details/suggestions. 32 // has a total of 30px - but 10px are already provided by details/suggestions.
34 const CGFloat kButtonVerticalPadding = 20.0; 33 const CGFloat kButtonVerticalPadding = 20.0;
35 34
36 // Padding around the text for the legal documents. 35 // Padding around the text for the legal documents.
37 const CGFloat kLegalDocumentsPadding = 20.0; 36 const CGFloat kLegalDocumentsPadding = 20.0;
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 416
418 - (NSImageView*)buttonStripImageForTesting { 417 - (NSImageView*)buttonStripImageForTesting {
419 return buttonStripImage_.get(); 418 return buttonStripImage_.get();
420 } 419 }
421 420
422 - (NSButton*)saveInChromeTooltipForTesting { 421 - (NSButton*)saveInChromeTooltipForTesting {
423 return base::mac::ObjCCast<NSButton>([saveInChromeTooltip_ view]); 422 return base::mac::ObjCCast<NSButton>([saveInChromeTooltip_ view]);
424 } 423 }
425 424
426 @end 425 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698