OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/shared/chrome/browser/tabs/web_state_list.h" | 5 #import "ios/chrome/browser/web_state_list/web_state_list.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #import "ios/shared/chrome/browser/tabs/web_state_list_delegate.h" | 12 #import "ios/chrome/browser/web_state_list/web_state_list_delegate.h" |
13 #import "ios/shared/chrome/browser/tabs/web_state_list_observer.h" | 13 #import "ios/chrome/browser/web_state_list/web_state_list_observer.h" |
14 #import "ios/shared/chrome/browser/tabs/web_state_list_order_controller.h" | 14 #import "ios/chrome/browser/web_state_list/web_state_list_order_controller.h" |
15 #import "ios/shared/chrome/browser/tabs/web_state_opener.h" | 15 #import "ios/chrome/browser/web_state_list/web_state_opener.h" |
16 #import "ios/web/public/navigation_manager.h" | 16 #import "ios/web/public/navigation_manager.h" |
17 #import "ios/web/public/web_state/web_state.h" | 17 #import "ios/web/public/web_state/web_state.h" |
18 | 18 |
19 #if !defined(__has_feature) || !__has_feature(objc_arc) | 19 #if !defined(__has_feature) || !__has_feature(objc_arc) |
20 #error "This file requires ARC support." | 20 #error "This file requires ARC support." |
21 #endif | 21 #endif |
22 | 22 |
23 // Wrapper around a WebState stored in a WebStateList. | 23 // Wrapper around a WebState stored in a WebStateList. |
24 class WebStateList::WebStateWrapper { | 24 class WebStateList::WebStateWrapper { |
25 public: | 25 public: |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 } else if (found_index != kInvalidIndex) { | 317 } else if (found_index != kInvalidIndex) { |
318 return found_index; | 318 return found_index; |
319 } | 319 } |
320 } | 320 } |
321 | 321 |
322 return found_index; | 322 return found_index; |
323 } | 323 } |
324 | 324 |
325 // static | 325 // static |
326 const int WebStateList::kInvalidIndex; | 326 const int WebStateList::kInvalidIndex; |
OLD | NEW |