Commit f487305e authored by Mugdha Lakhani's avatar Mugdha Lakhani Committed by Commit Bot

[WebLayer] PageInfoClientImpl moves to the weblayer namespace.

Bug: 1058595
Change-Id: I53dd3ecfce6393b0eaeddbd98a4622dac1f1d73c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2188290Reviewed-by: default avatarClark DuVall <cduvall@chromium.org>
Commit-Queue: Mugdha Lakhani <nator@chromium.org>
Cr-Commit-Position: refs/heads/master@{#766530}
parent 87bb971d
......@@ -8,6 +8,8 @@
#include "weblayer/browser/android/resource_mapper.h"
#include "weblayer/browser/url_bar/page_info_delegate_impl.h"
namespace weblayer {
// static
PageInfoClientImpl* PageInfoClientImpl::GetInstance() {
return new PageInfoClientImpl();
......@@ -22,3 +24,5 @@ std::unique_ptr<PageInfoDelegate> PageInfoClientImpl::CreatePageInfoDelegate(
int PageInfoClientImpl::GetJavaResourceId(int native_resource_id) {
return weblayer::MapToJavaDrawableId(native_resource_id);
}
} // namespace weblayer
......@@ -15,6 +15,8 @@ namespace content {
class WebContents;
}
namespace weblayer {
// WebLayer's implementation of PageInfoClient.
class PageInfoClientImpl : public page_info::PageInfoClient {
public:
......@@ -29,4 +31,6 @@ class PageInfoClientImpl : public page_info::PageInfoClient {
int GetJavaResourceId(int native_resource_id) override;
};
} // namespace weblayer
#endif // WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_CLIENT_IMPL_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment