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

Unified Diff: ios/chrome/browser/ui/tab_switcher/session_changes.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/BUILD.gn ('k') | ios/chrome/browser/ui/tab_switcher/session_changes.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/tab_switcher/session_changes.h
diff --git a/ios/chrome/browser/ui/tab_switcher/session_changes.h b/ios/chrome/browser/ui/tab_switcher/session_changes.h
deleted file mode 100644
index 73b6b1e30b38ad1a2e8df4e6d40f514c775b34b4..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/ui/tab_switcher/session_changes.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_SESSION_CHANGES_H_
-#define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_SESSION_CHANGES_H_
-
-#include <vector>
-
-// This structure represents the changes a session undergoes.
-// It is used to update the UICollectionView showing a set of tabs.
-class SessionChanges {
- public:
- SessionChanges(std::vector<size_t> const& tabHashesInInitialState,
- std::vector<size_t> const& tabHashesInFinalState);
- ~SessionChanges();
- SessionChanges(const SessionChanges& sessionChanges) = delete;
- SessionChanges& operator=(const SessionChanges& sessionChanges) = delete;
-
- std::vector<size_t> const& deletions() const;
- std::vector<size_t> const& insertions() const;
- std::vector<size_t> const& updates() const;
-
- bool hasChanges() const;
-
- private:
- // Those vectors contain indexes of tabs.
- // The indexes are relative to a tab model snapshot, or a distant session.
- // To be in accordance with the UICollectionView's |performBatchUpdates|
- // method:
- // -the indexes in |updates| are relative to the previous state of the
- // session.
- // -the indexes in |deletions| are relative to the previous state of the
- // session.
- // -the indexes in |insertions| are relative to the final state of the
- // session.
- std::vector<size_t> deletions_;
- std::vector<size_t> insertions_;
- std::vector<size_t> updates_;
-};
-
-#endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_SESSION_CHANGES_H_
« no previous file with comments | « ios/chrome/browser/ui/tab_switcher/BUILD.gn ('k') | ios/chrome/browser/ui/tab_switcher/session_changes.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698