Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(931)

Unified Diff: services/navigation/view_impl.cc

Issue 2038143003: Support link hovering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: . Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/navigation/view_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/view_impl.cc
diff --git a/services/navigation/view_impl.cc b/services/navigation/view_impl.cc
index 722faa3179133f63d963be10b239fe4fe57f80cf..b241df86e199d4ba4dc49b4098885e70df37fb7e 100644
--- a/services/navigation/view_impl.cc
+++ b/services/navigation/view_impl.cc
@@ -95,6 +95,10 @@ void ViewImpl::HideInterstitial() {
web_view_->GetWebContents()->GetInterstitialPage()->Proceed();
}
+void ViewImpl::SetResizerSize(const gfx::Size& size) {
+ resizer_size_ = size;
+}
+
void ViewImpl::AddNewContents(content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
@@ -141,6 +145,17 @@ void ViewImpl::LoadProgressChanged(content::WebContents* source,
client_->LoadProgressChanged(progress);
}
+void ViewImpl::UpdateTargetURL(content::WebContents* source, const GURL& url) {
+ client_->UpdateHoverURL(url);
+}
+
+gfx::Rect ViewImpl::GetRootWindowResizerRect() const {
+ gfx::Rect bounds = web_view_->GetLocalBounds();
+ return gfx::Rect(bounds.right() - resizer_size_.width(),
+ bounds.bottom() - resizer_size_.height(),
+ resizer_size_.width(), resizer_size_.height());
+}
+
void ViewImpl::OnEmbed(mus::Window* root) {
DCHECK(!widget_.get());
widget_.reset(new views::Widget);
« no previous file with comments | « services/navigation/view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698