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

Side by Side Diff: ios/chrome/browser/ui/toolbar/web_toolbar_controller.mm

Issue 2602903002: Factor iOS native image loading into a utility function. (Closed)
Patch Set: Fixed BUILD files. Created 3 years, 11 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" 5 #import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h"
6 6
7 #import <CoreLocation/CoreLocation.h> 7 #import <CoreLocation/CoreLocation.h>
8 #include <QuartzCore/QuartzCore.h> 8 #include <QuartzCore/QuartzCore.h>
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #import "ios/public/provider/chrome/browser/images/branded_image_provider.h" 60 #import "ios/public/provider/chrome/browser/images/branded_image_provider.h"
61 #import "ios/public/provider/chrome/browser/voice/voice_search_provider.h" 61 #import "ios/public/provider/chrome/browser/voice/voice_search_provider.h"
62 #import "ios/third_party/material_components_ios/src/components/Palettes/src/Mat erialPalettes.h" 62 #import "ios/third_party/material_components_ios/src/components/Palettes/src/Mat erialPalettes.h"
63 #import "ios/third_party/material_components_ios/src/components/ProgressView/src /MaterialProgressView.h" 63 #import "ios/third_party/material_components_ios/src/components/ProgressView/src /MaterialProgressView.h"
64 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h" 64 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h"
65 #include "ios/web/public/referrer.h" 65 #include "ios/web/public/referrer.h"
66 #import "ios/web/public/web_state/web_state.h" 66 #import "ios/web/public/web_state/web_state.h"
67 #import "net/base/mac/url_conversions.h" 67 #import "net/base/mac/url_conversions.h"
68 #include "ui/base/l10n/l10n_util.h" 68 #include "ui/base/l10n/l10n_util.h"
69 #include "ui/base/page_transition_types.h" 69 #include "ui/base/page_transition_types.h"
70 #include "ui/base/resource/resource_bundle.h"
71 #import "ui/gfx/ios/NSString+CrStringDrawing.h" 70 #import "ui/gfx/ios/NSString+CrStringDrawing.h"
72 71
73 using base::UserMetricsAction; 72 using base::UserMetricsAction;
74 using ios::material::TimingFunction; 73 using ios::material::TimingFunction;
75 74
76 NSString* const kTabHistoryPopupWillShowNotification = 75 NSString* const kTabHistoryPopupWillShowNotification =
77 @"kTabHistoryPopupWillShowNotification"; 76 @"kTabHistoryPopupWillShowNotification";
78 NSString* const kTabHistoryPopupWillHideNotification = 77 NSString* const kTabHistoryPopupWillHideNotification =
79 @"kTabHistoryPopupWillHideNotification"; 78 @"kTabHistoryPopupWillHideNotification";
80 const CGFloat kiPhoneOmniboxPlaceholderColorBrightness = 150 / 255.0; 79 const CGFloat kiPhoneOmniboxPlaceholderColorBrightness = 150 / 255.0;
(...skipping 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2564 2563
2565 - (BOOL)isPrerenderAnimationRunning { 2564 - (BOOL)isPrerenderAnimationRunning {
2566 return _prerenderAnimating; 2565 return _prerenderAnimating;
2567 } 2566 }
2568 2567
2569 - (OmniboxTextFieldIOS*)omnibox { 2568 - (OmniboxTextFieldIOS*)omnibox {
2570 return _omniBox.get(); 2569 return _omniBox.get();
2571 } 2570 }
2572 2571
2573 @end 2572 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698