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

Unified Diff: components/exo/pointer_unittest.cc

Issue 1580033004: exo: Improve Maximize and Fullscreen support for ShellSurfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add TODO Created 4 years, 11 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/keyboard_unittest.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 df3b1a735827327b1bf26c40c77cbbf56f41a16c..87d26414b0e4c93fa99320d352d05ff891c665ed 100644
--- a/components/exo/pointer_unittest.cc
+++ b/components/exo/pointer_unittest.cc
@@ -36,7 +36,7 @@ class MockPointerDelegate : public PointerDelegate {
TEST_F(PointerTest, OnPointerEnter) {
scoped_ptr<Surface> surface(new Surface);
scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get()));
- shell_surface->SetToplevel();
+ shell_surface->Init();
gfx::Size buffer_size(10, 10);
scoped_ptr<Buffer> buffer(new Buffer(
exo_test_helper()->CreateGpuMemoryBuffer(buffer_size), GL_TEXTURE_2D));
@@ -59,7 +59,7 @@ TEST_F(PointerTest, OnPointerEnter) {
TEST_F(PointerTest, OnPointerLeave) {
scoped_ptr<Surface> surface(new Surface);
scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get()));
- shell_surface->SetToplevel();
+ shell_surface->Init();
gfx::Size buffer_size(10, 10);
scoped_ptr<Buffer> buffer(new Buffer(
exo_test_helper()->CreateGpuMemoryBuffer(buffer_size), GL_TEXTURE_2D));
@@ -85,7 +85,7 @@ TEST_F(PointerTest, OnPointerLeave) {
TEST_F(PointerTest, OnPointerMotion) {
scoped_ptr<Surface> surface(new Surface);
scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get()));
- shell_surface->SetToplevel();
+ shell_surface->Init();
gfx::Size buffer_size(10, 10);
scoped_ptr<Buffer> buffer(new Buffer(
exo_test_helper()->CreateGpuMemoryBuffer(buffer_size), GL_TEXTURE_2D));
@@ -112,7 +112,7 @@ TEST_F(PointerTest, OnPointerMotion) {
TEST_F(PointerTest, OnPointerButton) {
scoped_ptr<Surface> surface(new Surface);
scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get()));
- shell_surface->SetToplevel();
+ shell_surface->Init();
gfx::Size buffer_size(10, 10);
scoped_ptr<Buffer> buffer(new Buffer(
exo_test_helper()->CreateGpuMemoryBuffer(buffer_size), GL_TEXTURE_2D));
@@ -141,7 +141,7 @@ TEST_F(PointerTest, OnPointerButton) {
TEST_F(PointerTest, OnPointerWheel) {
scoped_ptr<Surface> surface(new Surface);
scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get()));
- shell_surface->SetToplevel();
+ shell_surface->Init();
gfx::Size buffer_size(10, 10);
scoped_ptr<Buffer> buffer(new Buffer(
exo_test_helper()->CreateGpuMemoryBuffer(buffer_size), GL_TEXTURE_2D));
« no previous file with comments | « components/exo/keyboard_unittest.cc ('k') | components/exo/shell_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698