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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.mm
diff --git a/ios/chrome/browser/ui/tab_switcher/session_changes.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.mm
similarity index 59%
rename from ios/chrome/browser/ui/tab_switcher/session_changes.mm
rename to ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.mm
index b50ac77c89426520fbc6b631991a3b92ce6905cc..5d94e05d02fba6ac3cfce699ea6df45618bbad6b 100644
--- a/ios/chrome/browser/ui/tab_switcher/session_changes.mm
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.mm
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ios/chrome/browser/ui/tab_switcher/session_changes.h"
+#include "ios/chrome/browser/ui/tab_switcher/tab_switcher_session_changes.h"
#import "ios/chrome/browser/ui/tab_switcher/tab_switcher_utils.h"
-SessionChanges::SessionChanges(
+TabSwitcherSessionChanges::TabSwitcherSessionChanges(
std::vector<size_t> const& tabHashesInInitialState,
std::vector<size_t> const& tabHashesInFinalState) {
TabSwitcherMinimalReplacementOperations(tabHashesInInitialState,
@@ -14,18 +14,8 @@ SessionChanges::SessionChanges(
&deletions_, &insertions_);
}
-SessionChanges::~SessionChanges() {}
+TabSwitcherSessionChanges::~TabSwitcherSessionChanges() {}
-std::vector<size_t> const& SessionChanges::deletions() const {
- return deletions_;
-}
-std::vector<size_t> const& SessionChanges::insertions() const {
- return insertions_;
-}
-std::vector<size_t> const& SessionChanges::updates() const {
- return updates_;
-}
-
-bool SessionChanges::hasChanges() const {
+bool TabSwitcherSessionChanges::HasChanges() const {
return updates_.size() || deletions_.size() || insertions_.size();
}
« 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