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

Unified Diff: ui/aura/remote_root_window_host_win.cc

Issue 87383002: Fix autofill popup size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « ui/aura/remote_root_window_host_win.h ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/remote_root_window_host_win.cc
diff --git a/ui/aura/remote_root_window_host_win.cc b/ui/aura/remote_root_window_host_win.cc
index 6084885e1d327c477ace838bdb9055a0c918bf1d..7097e3d29687b1cbf0eae98a3e15a8d6367d3eca 100644
--- a/ui/aura/remote_root_window_host_win.cc
+++ b/ui/aura/remote_root_window_host_win.cc
@@ -134,7 +134,8 @@ RemoteRootWindowHostWin::RemoteRootWindowHostWin(const gfx::Rect& bounds)
: remote_window_(NULL),
host_(NULL),
ignore_mouse_moves_until_set_cursor_ack_(false),
- event_flags_(0) {
+ event_flags_(0),
+ window_size_(aura::RootWindowHost::GetNativeScreenSize()) {
prop_.reset(new ui::ViewProp(NULL, kRootWindowHostWinKey, this));
}
@@ -324,11 +325,11 @@ void RemoteRootWindowHostWin::ToggleFullScreen() {
}
gfx::Rect RemoteRootWindowHostWin::GetBounds() const {
- gfx::Rect r(gfx::Point(0, 0), aura::RootWindowHost::GetNativeScreenSize());
- return r;
+ return gfx::Rect(window_size_);
}
void RemoteRootWindowHostWin::SetBounds(const gfx::Rect& bounds) {
+ window_size_ = bounds.size();
delegate_->OnHostResized(bounds.size());
}
« no previous file with comments | « ui/aura/remote_root_window_host_win.h ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698