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

Unified Diff: ios/chrome/browser/ui/tab_switcher/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
Index: ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.h
diff --git a/ios/chrome/browser/ui/tab_switcher/session_changes.h b/ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.h
similarity index 50%
rename from ios/chrome/browser/ui/tab_switcher/session_changes.h
rename to ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.h
index 73b6b1e30b38ad1a2e8df4e6d40f514c775b34b4..443895291dc4dee9dd5b2c17df64140e29515352 100644
--- a/ios/chrome/browser/ui/tab_switcher/session_changes.h
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.h
@@ -2,26 +2,30 @@
// 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_
+#ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_SESSION_CHANGES_H_
+#define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_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 {
+class TabSwitcherSessionChanges {
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;
+ TabSwitcherSessionChanges(std::vector<size_t> const& tabHashesInInitialState,
+ std::vector<size_t> const& tabHashesInFinalState);
+ ~TabSwitcherSessionChanges();
+ TabSwitcherSessionChanges(const TabSwitcherSessionChanges& sessionChanges) =
+ delete;
+ TabSwitcherSessionChanges& operator=(
+ const TabSwitcherSessionChanges& sessionChanges) = delete;
- std::vector<size_t> const& deletions() const;
- std::vector<size_t> const& insertions() const;
- std::vector<size_t> const& updates() const;
+ std::vector<size_t> const& deletions() const { return deletions_; }
- bool hasChanges() const;
+ std::vector<size_t> const& insertions() const { return insertions_; }
+
+ std::vector<size_t> const& updates() const { return updates_; }
+
+ bool HasChanges() const;
private:
// Those vectors contain indexes of tabs.
@@ -39,4 +43,4 @@ class SessionChanges {
std::vector<size_t> updates_;
};
-#endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_SESSION_CHANGES_H_
+#endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_SWITCHER_SESSION_CHANGES_H_

Powered by Google App Engine
This is Rietveld 408576698