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

Unified Diff: ash/wm/window_mirror_view.cc

Issue 2164803003: Window cycle ui improvements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histograms.xml Created 4 years, 5 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 | « ash/common/wm/window_cycle_list.cc ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_mirror_view.cc
diff --git a/ash/wm/window_mirror_view.cc b/ash/wm/window_mirror_view.cc
index 3e702277e9e7c17bc6bfa3143c48cfba0360f41f..b62a366566f3758fdcf288e772e83c2a2f1bcee2 100644
--- a/ash/wm/window_mirror_view.cc
+++ b/ash/wm/window_mirror_view.cc
@@ -51,17 +51,7 @@ void WindowMirrorView::Init() {
}
gfx::Size WindowMirrorView::GetPreferredSize() const {
- const int kMaxWidth = 512;
- const int kMaxHeight = 256;
-
- gfx::Size target_size = target_->GetBounds().size();
- if (target_size.width() <= kMaxWidth && target_size.height() <= kMaxHeight) {
- return target_size;
- }
-
- float scale = std::min(kMaxWidth / static_cast<float>(target_size.width()),
- kMaxHeight / static_cast<float>(target_size.height()));
- return gfx::ScaleToCeiledSize(target_size, scale, scale);
+ return target_->GetBounds().size();
}
void WindowMirrorView::Layout() {
« no previous file with comments | « ash/common/wm/window_cycle_list.cc ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698