SAN FRANCISCO >> There’s no guarantee Matt Chapman will return from his right hand injury prior to the All-Star Break, but on Tuesday, the third baseman took two important steps toward coming back before the season’s midway point.

Prior to Tuesday’s game against the Miami Marlins, Chapman took 20 swings off of a batting tee and played catch for the first time since landing on the injured list two weeks ago. Manager Bob Melvin said Chapman progressed to swinging and throwing “a little bit” sooner than expected, adding that it’s realistic for Chapman to return prior to the All-Star break.

“Everything felt good,” Chapman said. “Normal soreness. Nothing out of the ordinary. I think I just have to work through some of that, get my strength back. It’s probably up to 85%. Not quite all the way there. I’m going to keep progressing, and the hope is to come back before the All-Star Break. ... All signs point to yes, but until I face velocity and really start to push it, it’s going to be really hard to know. But I think today was a good first step.”

Added Melvin: “It’s the start of a process to where we can day-by day kind of figure out where we think he’s going to come back. We’ll see how he responds tomorrow. We’ll see how (trainer Dave Groeschner) ramps up the hitting portion of it. I know he feels pretty good in the fact that he can do more things.”

Chapman, placed on the injured list June 10 (retroactive to June 9), will travel to the team’s Arizona complex to continue his rehab after the Giants fly to Chicago to face the White Sox and begin a 10-game road trip. He hopes to return during the Giants’ final home stand before the break against the Philadelphia Phillies (July 7-9) and Los Angeles Dodgers (July 11-13).

“I’m going to use our spring training facilities, try to use every resource that I have to get myself right,” Chapman said. “I think after Arizona — that’s probably a little over a week — we’ll know a lot. It shouldn’t be much longer than that.”

Chapman said he does not plan on playing a rehab assignment before returning, but added “some of that stuff’s out of my control.”