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

Unified Diff: chrome/browser/views/frame/contents_container.cc

Issue 3417011: Makes match preview send the dimensions of the omnibox to the page. (Closed)
Patch Set: Fix unittest Created 10 years, 3 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
Index: chrome/browser/views/frame/contents_container.cc
diff --git a/chrome/browser/views/frame/contents_container.cc b/chrome/browser/views/frame/contents_container.cc
index 3d455eff3b0fadaf9e124cb9cdbe249c9a2c4495..fd80e3ba9e22910a3ba179fbf8c3297d3da2102e 100644
--- a/chrome/browser/views/frame/contents_container.cc
+++ b/chrome/browser/views/frame/contents_container.cc
@@ -110,6 +110,12 @@ void ContentsContainer::SetActiveTopMargin(int margin) {
InvalidateLayout();
}
+gfx::Rect ContentsContainer::GetPreviewBounds() {
+ gfx::Point screen_loc;
+ ConvertPointToScreen(this, &screen_loc);
+ return gfx::Rect(screen_loc, size());
+}
+
void ContentsContainer::Layout() {
// The active view always gets the full bounds.
active_->SetBounds(0, active_top_margin_, width(),
« no previous file with comments | « chrome/browser/views/frame/contents_container.h ('k') | chrome/browser/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698