| OLD | NEW |
| 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 "ios/chrome/browser/ui/history/tab_history_view_controller.h" | 5 #import "ios/chrome/browser/ui/history/tab_history_view_controller.h" |
| 6 | 6 |
| 7 #import "base/ios/weak_nsobject.h" | 7 #import "base/ios/weak_nsobject.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/mac/foundation_util.h" | 9 #include "base/mac/foundation_util.h" |
| 10 #include "base/mac/objc_property_releaser.h" | 10 #include "base/mac/objc_release_properties.h" |
| 11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h" | 13 #import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h" |
| 14 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" | 14 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" |
| 15 #import "ios/chrome/browser/ui/history/tab_history_cell.h" | 15 #import "ios/chrome/browser/ui/history/tab_history_cell.h" |
| 16 #include "ios/chrome/browser/ui/rtl_geometry.h" | 16 #include "ios/chrome/browser/ui/rtl_geometry.h" |
| 17 #import "ios/third_party/material_components_ios/src/components/Ink/src/Material
Ink.h" | 17 #import "ios/third_party/material_components_ios/src/components/Ink/src/Material
Ink.h" |
| 18 #import "ios/web/navigation/crw_session_entry.h" | 18 #import "ios/web/navigation/crw_session_entry.h" |
| 19 #include "ios/web/public/favicon_status.h" | 19 #include "ios/web/public/favicon_status.h" |
| 20 #include "ios/web/public/navigation_item.h" | 20 #include "ios/web/public/navigation_item.h" |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 // Increase the size of the ink view to cover the collection view from edge | 424 // Increase the size of the ink view to cover the collection view from edge |
| 425 // to edge. | 425 // to edge. |
| 426 CGRect inkViewFrame = [cell frame]; | 426 CGRect inkViewFrame = [cell frame]; |
| 427 inkViewFrame.origin.x = 0; | 427 inkViewFrame.origin.x = 0; |
| 428 inkViewFrame.size.width = CGRectGetWidth([self.collectionView bounds]); | 428 inkViewFrame.size.width = CGRectGetWidth([self.collectionView bounds]); |
| 429 [[inkTouchController defaultInkView] setFrame:inkViewFrame]; | 429 [[inkTouchController defaultInkView] setFrame:inkViewFrame]; |
| 430 return YES; | 430 return YES; |
| 431 } | 431 } |
| 432 | 432 |
| 433 @end | 433 @end |
| OLD | NEW |