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

Side by Side Diff: ui/aura/window_unittest.cc

Issue 12746002: Re-implement overscan & Implement Display Rotation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/aura/window.h" 5 #include "ui/aura/window.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 gfx::Transform root_transform; 458 gfx::Transform root_transform;
459 root_transform.Translate(60.0, 70.0); 459 root_transform.Translate(60.0, 70.0);
460 root_transform.Rotate(-90.0); 460 root_transform.Rotate(-90.0);
461 root_transform.Translate(-50.0, -50.0); 461 root_transform.Translate(-50.0, -50.0);
462 root_transform.Scale(2.0, 3.0); 462 root_transform.Scale(2.0, 3.0);
463 463
464 gfx::Transform transform; 464 gfx::Transform transform;
465 transform.Translate(10.0, 20.0); 465 transform.Translate(10.0, 20.0);
466 transform.Rotate(10.0); 466 transform.Rotate(10.0);
467 transform.Scale(0.3, 0.5); 467 transform.Scale(0.3, 0.5);
468
469 root->SetTransform(root_transform); 468 root->SetTransform(root_transform);
470 w1->SetTransform(transform); 469 w1->SetTransform(transform);
471 w11->SetTransform(transform); 470 w11->SetTransform(transform);
472 w111->SetTransform(transform); 471 w111->SetTransform(transform);
473 w1111->SetTransform(transform); 472 w1111->SetTransform(transform);
474 473
475 w1111->MoveCursorTo(gfx::Point(10, 10)); 474 w1111->MoveCursorTo(gfx::Point(10, 10));
476 475
477 #if !defined(OS_WIN) 476 #if !defined(OS_WIN)
478 // TODO(yoshiki): fix this to build on Windows. See crbug.com/133413. 477 // TODO(yoshiki): fix this to build on Windows. See crbug.com/133413.
(...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after
2836 o.ValidateState(index++, params); 2835 o.ValidateState(index++, params);
2837 2836
2838 w1.reset(); 2837 w1.reset();
2839 w2.reset(); 2838 w2.reset();
2840 } 2839 }
2841 2840
2842 } 2841 }
2843 2842
2844 } // namespace test 2843 } // namespace test
2845 } // namespace aura 2844 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window_host_win.cc ('k') | ui/views/widget/desktop_aura/desktop_root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698