-
Notifications
You must be signed in to change notification settings - Fork 918
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11379 from /issues/19860
Add new tab page ad serving support to the ads library
- Loading branch information
Showing
99 changed files
with
2,710 additions
and
1,294 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
Binary file modified
BIN
+0 Bytes
(100%)
vendor/bat-native-ads/data/test/database_issue_17199.sqlite
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
vendor/bat-native-ads/data/test/database_issue_17231.sqlite
Binary file not shown.
Binary file not shown.
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
25 changes: 25 additions & 0 deletions
25
vendor/bat-native-ads/include/bat/ads/new_tab_page_ad_wallpaper_focal_point_info.h
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 @@ | ||
/* Copyright (c) 2021 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 http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVE_VENDOR_BAT_NATIVE_ADS_INCLUDE_BAT_ADS_NEW_TAB_PAGE_AD_WALLPAPER_FOCAL_POINT_INFO_H_ | ||
#define BRAVE_VENDOR_BAT_NATIVE_ADS_INCLUDE_BAT_ADS_NEW_TAB_PAGE_AD_WALLPAPER_FOCAL_POINT_INFO_H_ | ||
|
||
#include "bat/ads/export.h" | ||
|
||
namespace ads { | ||
|
||
struct ADS_EXPORT NewTabPageAdWallpaperFocalPointInfo final { | ||
NewTabPageAdWallpaperFocalPointInfo(); | ||
NewTabPageAdWallpaperFocalPointInfo( | ||
const NewTabPageAdWallpaperFocalPointInfo& info); | ||
~NewTabPageAdWallpaperFocalPointInfo(); | ||
|
||
int x; | ||
int y; | ||
}; | ||
|
||
} // namespace ads | ||
|
||
#endif // BRAVE_VENDOR_BAT_NATIVE_ADS_INCLUDE_BAT_ADS_NEW_TAB_PAGE_AD_WALLPAPER_FOCAL_POINT_INFO_H_ |
27 changes: 27 additions & 0 deletions
27
vendor/bat-native-ads/include/bat/ads/new_tab_page_ad_wallpaper_info.h
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,27 @@ | ||
/* Copyright (c) 2021 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 http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVE_VENDOR_BAT_NATIVE_ADS_INCLUDE_BAT_ADS_NEW_TAB_PAGE_AD_WALLPAPER_INFO_H_ | ||
#define BRAVE_VENDOR_BAT_NATIVE_ADS_INCLUDE_BAT_ADS_NEW_TAB_PAGE_AD_WALLPAPER_INFO_H_ | ||
|
||
#include <string> | ||
|
||
#include "bat/ads/export.h" | ||
#include "bat/ads/new_tab_page_ad_wallpaper_focal_point_info.h" | ||
|
||
namespace ads { | ||
|
||
struct ADS_EXPORT NewTabPageAdWallpaperInfo final { | ||
NewTabPageAdWallpaperInfo(); | ||
NewTabPageAdWallpaperInfo(const NewTabPageAdWallpaperInfo& info); | ||
~NewTabPageAdWallpaperInfo(); | ||
|
||
std::string image_url; | ||
NewTabPageAdWallpaperFocalPointInfo focal_point; | ||
}; | ||
|
||
} // namespace ads | ||
|
||
#endif // BRAVE_VENDOR_BAT_NATIVE_ADS_INCLUDE_BAT_ADS_NEW_TAB_PAGE_AD_WALLPAPER_INFO_H_ |
19 changes: 19 additions & 0 deletions
19
vendor/bat-native-ads/include/bat/ads/new_tab_page_ad_wallpaper_info_aliases.h
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,19 @@ | ||
/* Copyright (c) 2021 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 http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVE_VENDOR_BAT_NATIVE_ADS_INCLUDE_BAT_ADS_NEW_TAB_PAGE_AD_WALLPAPER_INFO_ALIASES_H_ | ||
#define BRAVE_VENDOR_BAT_NATIVE_ADS_INCLUDE_BAT_ADS_NEW_TAB_PAGE_AD_WALLPAPER_INFO_ALIASES_H_ | ||
|
||
#include <vector> | ||
|
||
#include "bat/ads/new_tab_page_ad_wallpaper_info.h" | ||
|
||
namespace ads { | ||
|
||
using NewTabPageAdWallpaperList = std::vector<NewTabPageAdWallpaperInfo>; | ||
|
||
} // namespace ads | ||
|
||
#endif // BRAVE_VENDOR_BAT_NATIVE_ADS_INCLUDE_BAT_ADS_NEW_TAB_PAGE_AD_WALLPAPER_INFO_ALIASES_H_ |
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.