| OLD | NEW |
| 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/stack_view/stack_view_controller.h" | 5 #import "ios/chrome/browser/ui/stack_view/stack_view_controller.h" |
| 6 | 6 |
| 7 #import <QuartzCore/QuartzCore.h> | 7 #import <QuartzCore/QuartzCore.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <cmath> | 10 #include <cmath> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #import "ios/chrome/browser/ui/stack_view/card_stack_pinch_gesture_recognizer.h" | 41 #import "ios/chrome/browser/ui/stack_view/card_stack_pinch_gesture_recognizer.h" |
| 42 #import "ios/chrome/browser/ui/stack_view/card_view.h" | 42 #import "ios/chrome/browser/ui/stack_view/card_view.h" |
| 43 #import "ios/chrome/browser/ui/stack_view/close_button.h" | 43 #import "ios/chrome/browser/ui/stack_view/close_button.h" |
| 44 #import "ios/chrome/browser/ui/stack_view/page_animation_util.h" | 44 #import "ios/chrome/browser/ui/stack_view/page_animation_util.h" |
| 45 #import "ios/chrome/browser/ui/stack_view/stack_card.h" | 45 #import "ios/chrome/browser/ui/stack_view/stack_card.h" |
| 46 #import "ios/chrome/browser/ui/stack_view/stack_view_controller_private.h" | 46 #import "ios/chrome/browser/ui/stack_view/stack_view_controller_private.h" |
| 47 #import "ios/chrome/browser/ui/stack_view/stack_view_toolbar_controller.h" | 47 #import "ios/chrome/browser/ui/stack_view/stack_view_toolbar_controller.h" |
| 48 #import "ios/chrome/browser/ui/stack_view/title_label.h" | 48 #import "ios/chrome/browser/ui/stack_view/title_label.h" |
| 49 #import "ios/chrome/browser/ui/toolbar/new_tab_button.h" | 49 #import "ios/chrome/browser/ui/toolbar/new_tab_button.h" |
| 50 #import "ios/chrome/browser/ui/toolbar/toolbar_owner.h" | 50 #import "ios/chrome/browser/ui/toolbar/toolbar_owner.h" |
| 51 #import "ios/chrome/browser/ui/tools_menu/tools_menu_configuration.h" | |
| 52 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_item.h" | 51 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_item.h" |
| 53 #import "ios/chrome/browser/ui/ui_util.h" | 52 #import "ios/chrome/browser/ui/ui_util.h" |
| 54 #import "ios/chrome/browser/ui/uikit_ui_util.h" | 53 #import "ios/chrome/browser/ui/uikit_ui_util.h" |
| 55 #import "ios/chrome/common/material_timing.h" | 54 #import "ios/chrome/common/material_timing.h" |
| 56 #include "ios/chrome/grit/ios_strings.h" | 55 #include "ios/chrome/grit/ios_strings.h" |
| 56 #import "ios/shared/chrome/browser/ui/tools_menu/tools_menu_configuration.h" |
| 57 #include "ios/web/public/referrer.h" | 57 #include "ios/web/public/referrer.h" |
| 58 #import "net/base/mac/url_conversions.h" | 58 #import "net/base/mac/url_conversions.h" |
| 59 #include "ui/base/l10n/l10n_util.h" | 59 #include "ui/base/l10n/l10n_util.h" |
| 60 | 60 |
| 61 using base::UserMetricsAction; | 61 using base::UserMetricsAction; |
| 62 | 62 |
| 63 // To obtain scroll behavior, places the card stacks' display views within a | 63 // To obtain scroll behavior, places the card stacks' display views within a |
| 64 // UIScrollView container. The container is used only as a driver of scroll | 64 // UIScrollView container. The container is used only as a driver of scroll |
| 65 // events. To avoid the finite size of the container from impacting scrolling, | 65 // events. To avoid the finite size of the container from impacting scrolling, |
| 66 // (1) the container is made large enough that it cannot be scrolled to a | 66 // (1) the container is made large enough that it cannot be scrolled to a |
| (...skipping 3436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3503 | 3503 |
| 3504 @end | 3504 @end |
| 3505 | 3505 |
| 3506 @implementation StackViewController (Testing) | 3506 @implementation StackViewController (Testing) |
| 3507 | 3507 |
| 3508 - (UIScrollView*)scrollView { | 3508 - (UIScrollView*)scrollView { |
| 3509 return _scrollView.get(); | 3509 return _scrollView.get(); |
| 3510 } | 3510 } |
| 3511 | 3511 |
| 3512 @end | 3512 @end |
| OLD | NEW |