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

Side by Side Diff: ui/aura/test/test_screen.h

Issue 1965073002: Rename gfx::Display to display::Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
« no previous file with comments | « ui/aura/client/cursor_client.h ('k') | ui/aura/window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef UI_AURA_TEST_TEST_SCREEN_H_ 5 #ifndef UI_AURA_TEST_TEST_SCREEN_H_
6 #define UI_AURA_TEST_TEST_SCREEN_H_ 6 #define UI_AURA_TEST_TEST_SCREEN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/aura/window_observer.h" 10 #include "ui/aura/window_observer.h"
(...skipping 19 matching lines...) Expand all
30 static TestScreen* Create(const gfx::Size& size); 30 static TestScreen* Create(const gfx::Size& size);
31 ~TestScreen() override; 31 ~TestScreen() override;
32 32
33 WindowTreeHost* CreateHostForPrimaryDisplay(); 33 WindowTreeHost* CreateHostForPrimaryDisplay();
34 34
35 void SetDeviceScaleFactor(float device_scale_fator); 35 void SetDeviceScaleFactor(float device_scale_fator);
36 void SetDisplayRotation(display::Display::Rotation rotation); 36 void SetDisplayRotation(display::Display::Rotation rotation);
37 void SetUIScale(float ui_scale); 37 void SetUIScale(float ui_scale);
38 void SetWorkAreaInsets(const gfx::Insets& insets); 38 void SetWorkAreaInsets(const gfx::Insets& insets);
39 39
40 // gfx::Screen overrides: 40 // display::Screen overrides:
41 display::Display GetPrimaryDisplay() const override; 41 display::Display GetPrimaryDisplay() const override;
42 42
43 protected: 43 protected:
44 gfx::Transform GetRotationTransform() const; 44 gfx::Transform GetRotationTransform() const;
45 gfx::Transform GetUIScaleTransform() const; 45 gfx::Transform GetUIScaleTransform() const;
46 46
47 // WindowObserver overrides: 47 // WindowObserver overrides:
48 void OnWindowBoundsChanged(Window* window, 48 void OnWindowBoundsChanged(Window* window,
49 const gfx::Rect& old_bounds, 49 const gfx::Rect& old_bounds,
50 const gfx::Rect& new_bounds) override; 50 const gfx::Rect& new_bounds) override;
(...skipping 21 matching lines...) Expand all
72 display::Display display_; 72 display::Display display_;
73 73
74 float ui_scale_; 74 float ui_scale_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(TestScreen); 76 DISALLOW_COPY_AND_ASSIGN(TestScreen);
77 }; 77 };
78 78
79 } // namespace aura 79 } // namespace aura
80 80
81 #endif // UI_AURA_TEST_TEST_SCREEN_H_ 81 #endif // UI_AURA_TEST_TEST_SCREEN_H_
OLDNEW
« no previous file with comments | « ui/aura/client/cursor_client.h ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698