-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FXIOS-10164 [Homepage] Pocket Footer + Header
- Loading branch information
Showing
24 changed files
with
658 additions
and
130 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...x-ios/Client/Frontend/Browser/BrowserViewController/Actions/NavigationBrowserAction.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/ | ||
|
||
import Foundation | ||
|
||
/// Holds the various navigation that | ||
class NavigationBrowserAction: Action { | ||
let url: URL? | ||
init(urlToVisit: URL? = nil, | ||
windowUUID: WindowUUID, | ||
actionType: ActionType) { | ||
self.urlToVisit = urlToVisit | ||
super.init(windowUUID: windowUUID, | ||
actionType: actionType) | ||
} | ||
} | ||
|
||
enum NavigationBrowserActionType: ActionType { | ||
case tapOnCustomizeHomepage | ||
case tapOnCell | ||
case tapOnLink | ||
} |
25 changes: 25 additions & 0 deletions
25
firefox-ios/Client/Frontend/Browser/BrowserViewController/State/BrowserNavigationType.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/ | ||
|
||
import Foundation | ||
|
||
/// Holds the cases that the browser coordinator can navigate to | ||
/// This type exists as a field on the BrowserViewControllerState | ||
enum BrowserNavigationDestination { | ||
case customizeHomepage | ||
case link | ||
} | ||
|
||
struct NavigationDestination: Equatable { | ||
let destination: BrowserNavigationType | ||
let urlToVisit: URL? | ||
|
||
init( | ||
_ destination: BrowserNavigationDestination, | ||
urlToVisit: URL? = nil | ||
) { | ||
self.destination = destination | ||
self.urlToVisit = urlToVisit | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
firefox-ios/Client/Frontend/Home/Homepage Rebuild/HomepageNavigationDestination.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/ | ||
|
||
import Foundation | ||
|
||
enum HomepageNavigationDestination: Equatable, CaseIterable { | ||
case customizeHomepage | ||
case learnMore | ||
case link | ||
} | ||
|
||
struct NavigationDestination: Equatable { | ||
let destination: HomepageNavigationDestination | ||
let urlToVisit: URL? | ||
|
||
init( | ||
_ destination: HomepageNavigationDestination, | ||
urlToVisit: URL? = nil | ||
) { | ||
self.destination = destination | ||
self.urlToVisit = urlToVisit | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.