OLD | NEW |
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 #include "ios/chrome/browser/ui/first_run/static_file_view_controller.h" | 5 #include "ios/chrome/browser/ui/first_run/static_file_view_controller.h" |
6 | 6 |
7 #include <WebKit/WebKit.h> | 7 #import <WebKit/WebKit.h> |
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 "ios/chrome/browser/browser_state/chrome_browser_state.h" | 11 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
12 #import "ios/chrome/browser/ui/material_components/utils.h" | 12 #import "ios/chrome/browser/ui/material_components/utils.h" |
13 #include "ios/chrome/browser/ui/rtl_geometry.h" | 13 #include "ios/chrome/browser/ui/rtl_geometry.h" |
14 #import "ios/third_party/material_components_ios/src/components/AppBar/src/Mater
ialAppBar.h" | 14 #import "ios/third_party/material_components_ios/src/components/AppBar/src/Mater
ialAppBar.h" |
15 #import "ios/third_party/material_components_ios/src/components/FlexibleHeader/s
rc/MaterialFlexibleHeader.h" | 15 #import "ios/third_party/material_components_ios/src/components/FlexibleHeader/s
rc/MaterialFlexibleHeader.h" |
16 #import "ios/third_party/material_components_ios/src/components/Palettes/src/Mat
erialPalettes.h" | 16 #import "ios/third_party/material_components_ios/src/components/Palettes/src/Mat
erialPalettes.h" |
17 #import "ios/web/public/web_view_creation_util.h" | 17 #import "ios/web/public/web_view_creation_util.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 ConfigureAppBarWithCardStyle(_appBar); | 67 ConfigureAppBarWithCardStyle(_appBar); |
68 [_appBar headerViewController].headerView.trackingScrollView = | 68 [_appBar headerViewController].headerView.trackingScrollView = |
69 [_webView scrollView]; | 69 [_webView scrollView]; |
70 [_webView scrollView].delegate = [_appBar headerViewController]; | 70 [_webView scrollView].delegate = [_appBar headerViewController]; |
71 | 71 |
72 // Add the app bar at the end. | 72 // Add the app bar at the end. |
73 [_appBar addSubviewsToParent]; | 73 [_appBar addSubviewsToParent]; |
74 } | 74 } |
75 | 75 |
76 @end | 76 @end |
OLD | NEW |