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

Unified Diff: components/exo/pointer_unittest.cc

Issue 2688483003: exo: Refactor ShellSurface and WaylandRemoteShell (Closed)
Patch Set: Revert unnecessary changes Created 3 years, 10 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 | « components/exo/display.cc ('k') | components/exo/shell_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer_unittest.cc
diff --git a/components/exo/pointer_unittest.cc b/components/exo/pointer_unittest.cc
index eb5c071f588200f32f7d3f493becca9e0d011e83..f49513864ca6f5233a102fc58d8a1e81f4df86bb 100644
--- a/components/exo/pointer_unittest.cc
+++ b/components/exo/pointer_unittest.cc
@@ -175,8 +175,8 @@ TEST_F(PointerTest, OnPointerMotion) {
std::unique_ptr<Surface> child_surface(new Surface);
std::unique_ptr<ShellSurface> child_shell_surface(new ShellSurface(
- child_surface.get(), shell_surface.get(), gfx::Rect(9, 9, 1, 1), true,
- false, ash::kShellWindowId_DefaultContainer));
+ child_surface.get(), shell_surface.get(), ShellSurface::BoundsMode::FIXED,
+ gfx::Point(9, 9), true, false, ash::kShellWindowId_DefaultContainer));
gfx::Size child_buffer_size(15, 15);
std::unique_ptr<Buffer> child_buffer(
new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(child_buffer_size)));
@@ -307,9 +307,9 @@ TEST_F(PointerTest, IgnorePointerEventDuringModal) {
// Create surface for modal window.
std::unique_ptr<Surface> surface2(new Surface);
- std::unique_ptr<ShellSurface> shell_surface2(
- new ShellSurface(surface2.get(), nullptr, gfx::Rect(0, 0, 5, 5), true,
- false, ash::kShellWindowId_SystemModalContainer));
+ std::unique_ptr<ShellSurface> shell_surface2(new ShellSurface(
+ surface2.get(), nullptr, ShellSurface::BoundsMode::FIXED, gfx::Point(),
+ true, false, ash::kShellWindowId_SystemModalContainer));
std::unique_ptr<Buffer> buffer2(
new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(gfx::Size(5, 5))));
surface2->Attach(buffer2.get());
« no previous file with comments | « components/exo/display.cc ('k') | components/exo/shell_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698