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

Side by Side Diff: ios/chrome/browser/ui/tab_switcher/session_changes.mm

Issue 2608253003: [ios] Moves tab_switcher code out of the ios_internal namespace. (Closed)
Patch Set: Review. 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/tab_switcher/session_changes.h" 5 #import "ios/chrome/browser/ui/tab_switcher/session_changes.h"
6 6
7 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_utils.h" 7 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_utils.h"
8 8
9 namespace ios_internal {
10
11 SessionChanges::SessionChanges( 9 SessionChanges::SessionChanges(
12 std::vector<size_t> const& tabHashesInInitialState, 10 std::vector<size_t> const& tabHashesInInitialState,
13 std::vector<size_t> const& tabHashesInFinalState) { 11 std::vector<size_t> const& tabHashesInFinalState) {
14 ios_internal::MinimalReplacementOperations(tabHashesInInitialState, 12 TabSwitcherMinimalReplacementOperations(tabHashesInInitialState,
15 tabHashesInFinalState, &updates_, 13 tabHashesInFinalState, &updates_,
16 &deletions_, &insertions_); 14 &deletions_, &insertions_);
17 } 15 }
18 16
19 SessionChanges::~SessionChanges() {} 17 SessionChanges::~SessionChanges() {}
20 18
21 std::vector<size_t> const& SessionChanges::deletions() const { 19 std::vector<size_t> const& SessionChanges::deletions() const {
22 return deletions_; 20 return deletions_;
23 } 21 }
24 std::vector<size_t> const& SessionChanges::insertions() const { 22 std::vector<size_t> const& SessionChanges::insertions() const {
25 return insertions_; 23 return insertions_;
26 } 24 }
27 std::vector<size_t> const& SessionChanges::updates() const { 25 std::vector<size_t> const& SessionChanges::updates() const {
28 return updates_; 26 return updates_;
29 } 27 }
30 28
31 bool SessionChanges::hasChanges() const { 29 bool SessionChanges::hasChanges() const {
32 return updates_.size() || deletions_.size() || insertions_.size(); 30 return updates_.size() || deletions_.size() || insertions_.size();
33 } 31 }
34
35 } // namespace ios_internal
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/session_changes.h ('k') | ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698