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

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

Issue 2612733004: Renames SessionChanges and SessionCellData to have a TabSwitcher prefix. (Closed)
Patch Set: 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
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ios/chrome/browser/ui/tab_switcher/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 SessionChanges::SessionChanges( 9 TabSwitcherSessionChanges::TabSwitcherSessionChanges(
10 std::vector<size_t> const& tabHashesInInitialState, 10 std::vector<size_t> const& tabHashesInInitialState,
11 std::vector<size_t> const& tabHashesInFinalState) { 11 std::vector<size_t> const& tabHashesInFinalState) {
12 TabSwitcherMinimalReplacementOperations(tabHashesInInitialState, 12 TabSwitcherMinimalReplacementOperations(tabHashesInInitialState,
13 tabHashesInFinalState, &updates_, 13 tabHashesInFinalState, &updates_,
14 &deletions_, &insertions_); 14 &deletions_, &insertions_);
15 } 15 }
16 16
17 SessionChanges::~SessionChanges() {} 17 TabSwitcherSessionChanges::~TabSwitcherSessionChanges() {}
18 18
19 std::vector<size_t> const& SessionChanges::deletions() const { 19 bool TabSwitcherSessionChanges::HasChanges() const {
20 return deletions_;
21 }
22 std::vector<size_t> const& SessionChanges::insertions() const {
23 return insertions_;
24 }
25 std::vector<size_t> const& SessionChanges::updates() const {
26 return updates_;
27 }
28
29 bool SessionChanges::hasChanges() const {
30 return updates_.size() || deletions_.size() || insertions_.size(); 20 return updates_.size() || deletions_.size() || insertions_.size();
31 } 21 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698