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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comments Created 8 years, 1 month 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/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 177e5394768e4689cf09d426c43b6265159aff36..2ab02c9a918eeb9911930396c105012c5a8c3b19 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -664,6 +664,16 @@ bool BrowserView::IsAlwaysOnTop() const {
return false;
}
+gfx::Rect BrowserView::ContentBoundsForWindowBounds(
+ const gfx::Rect& window_bounds) const {
+ return window_bounds;
+}
+
+gfx::Rect BrowserView::WindowBoundsForContentBounds(
+ const gfx::Rect& content_bounds) const {
+ return content_bounds;
+}
+
gfx::NativeWindow BrowserView::GetNativeWindow() {
return GetWidget()->GetTopLevelWidget()->GetNativeWindow();
}

Powered by Google App Engine
This is Rietveld 408576698