|
Add "Request app banner" context menu in DevTools
BUG= 540491
Demo: https://drive.google.com/file/d/0B6skYAFVnosEc1RQRm9KYmxCeXM/view?usp=sharing
When the user clicks "Request app banner" context menu, Chrome tries to open
"add to homescreen" banner. And if error happens, it will show the detailed
information about why the app banner is not opened even if
"bypass-app-banner-engagement-checks" flag is not set.
RequestAppBanner method from DevTools is handled like this:
Android:
PageHandler::RequestAppBanner()
-> TabWebContentsDelegateAndroid::RequestAppBanner()
-> Java TabWebContentsDelegateAndroid.requestAppBanner()
-> Java Tab.requestAppBanner()
-> Java AppBannerManager.requestAppBanner()
-> nativeRequestAppBanner()
-> AppBannerManagerAndroid::RequestAppBanner()
-> AppBannerManager::TriggerAppBannerFetch()
Desktop:
PageHandler::RequestAppBanner()
-> Browser::RequestAppBanner()
-> AppBannerManager::TriggerAppBannerFetch()
Committed: https://crrev.com/9638ad271db786762315556b7c2bc9c0a55c8e76
Cr-Commit-Position: refs/heads/master@{#371239}
Total comments: 10
Total comments: 14
Total comments: 8
Total comments: 9
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+322 lines, -99 lines) |
Patch |
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java
|
View
|
1
2
3
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/banners/app_banner_data_fetcher_android.h
|
View
|
1
2
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/banners/app_banner_data_fetcher_android.cc
|
View
|
1
2
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/banners/app_banner_manager_android.h
|
View
|
1
2
3
|
1 chunk |
+12 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/banners/app_banner_manager_android.cc
|
View
|
1
2
3
|
6 chunks |
+29 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/tab_web_contents_delegate_android.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/tab_web_contents_delegate_android.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_data_fetcher.h
|
View
|
1
2
3
4
5
|
5 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_data_fetcher.cc
|
View
|
1
2
3
4
|
12 chunks |
+39 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_data_fetcher_browsertest.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_data_fetcher_desktop.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_data_fetcher_desktop.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_data_fetcher_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_debug_log.h
|
View
|
1
2
3
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_debug_log.cc
|
View
|
1
2
3
4
|
3 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_manager.h
|
View
|
1
2
3
4
5
|
3 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_manager.cc
|
View
|
1
2
3
|
2 chunks |
+23 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_manager_desktop.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/banners/app_banner_manager_desktop.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/web_contents_delegate_android/web_contents_delegate_android.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/web_contents_delegate_android/web_contents_delegate_android.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/devtools/protocol/page_handler.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/devtools/protocol/page_handler.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/web_contents_delegate.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/web_contents_delegate.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
|
View
|
1
2
3
4
5
6
|
3 chunks |
+15 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/front_end/emulation/module.json
|
View
|
1
2
3
4
5
6
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js
|
View
|
1
2
3
4
5
6
|
2 chunks |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/front_end/screencast/module.json
|
View
|
1
2
3
4
5
6
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/protocol.json
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
Total messages: 54 (21 generated)
|