-
Notifications
You must be signed in to change notification settings - Fork 920
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
640 additions
and
8 deletions.
There are no files selected for viewing
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
52 changes: 52 additions & 0 deletions
52
android/java/org/chromium/chrome/browser/ntp_background_images/model/SponsoredRichMedia.java
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,52 @@ | ||
/* Copyright (c) 2025 The Brave Authors. All rights reserved. | ||
* 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 https://mozilla.org/MPL/2.0/. */ | ||
|
||
package org.chromium.chrome.browser.ntp_background_images.model; | ||
|
||
public class SponsoredRichMedia extends NTPImage { | ||
private String mWallpaperUrl; | ||
private String mCreativeInstanceId; | ||
private String mPlacementId; | ||
private String mTargetUrl; | ||
|
||
public SponsoredRichMedia(String wallpaperUrl, String creativeInstanceId, String placementId, String targetUrl) { | ||
mWallpaperUrl = wallpaperUrl; | ||
mCreativeInstanceId = creativeInstanceId; | ||
mPlacementId = placementId; | ||
mTargetUrl = targetUrl; | ||
} | ||
|
||
public String getWallpaperUrl() { | ||
return mWallpaperUrl; | ||
} | ||
|
||
public void setWallpaperUrl(String wallpaperUrl) { | ||
mWallpaperUrl = wallpaperUrl; | ||
} | ||
|
||
public String getCreativeInstanceId() { | ||
return mCreativeInstanceId; | ||
} | ||
|
||
public void setCreativeInstanceId(String creativeInstanceId) { | ||
mCreativeInstanceId = creativeInstanceId; | ||
} | ||
|
||
public String getPlacementId() { | ||
return mPlacementId; | ||
} | ||
|
||
public void setPlacementId(String placementId) { | ||
mPlacementId = placementId; | ||
} | ||
|
||
public String getTargetUrl() { | ||
return mTargetUrl; | ||
} | ||
|
||
public void setTargetUrl(String targetUrl) { | ||
mTargetUrl = targetUrl; | ||
} | ||
} |
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
Oops, something went wrong.