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

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

Issue 5903002: Two fixes for the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 10 years 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 | « chrome/browser/ui/views/frame/opaque_browser_frame_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
index 34c83785b7cefb994e14140c6a1643a470e4c064..d5bd3b3e945548b2b7c992b281662f9ed5adec16 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
@@ -183,6 +183,15 @@ int OpaqueBrowserFrameView::GetReservedHeight() const {
return 0;
}
+gfx::Rect OpaqueBrowserFrameView::GetBoundsForReservedArea() const {
+ gfx::Rect client_view_bounds = CalculateClientAreaBounds(width(), height());
+ return gfx::Rect(
+ client_view_bounds.x(),
+ client_view_bounds.y() + client_view_bounds.height(),
+ client_view_bounds.width(),
+ GetReservedHeight());
+}
+
///////////////////////////////////////////////////////////////////////////////
// OpaqueBrowserFrameView, BrowserNonClientFrameView implementation:
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698