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

Side by Side Diff: ash/wm/compact_layout_manager_unittest.cc

Issue 9289036: aura: Add Layer::LAYER_SOLID_COLOR to compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update WorkspaceManagerTest Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/base_layout_manager_unittest.cc ('k') | ash/wm/image_grid.cc » ('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 #include "ash/wm/compact_layout_manager.h" 5 #include "ash/wm/compact_layout_manager.h"
6 6
7 #include "ash/wm/shelf_layout_manager.h" 7 #include "ash/wm/shelf_layout_manager.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 17 matching lines...) Expand all
28 internal::CompactLayoutManager* layout_manager() { 28 internal::CompactLayoutManager* layout_manager() {
29 return layout_manager_; 29 return layout_manager_;
30 } 30 }
31 31
32 virtual void SetUp() OVERRIDE { 32 virtual void SetUp() OVERRIDE {
33 aura::test::AuraTestBase::SetUp(); 33 aura::test::AuraTestBase::SetUp();
34 aura::RootWindow::GetInstance()->screen()->set_work_area_insets( 34 aura::RootWindow::GetInstance()->screen()->set_work_area_insets(
35 gfx::Insets(1, 2, 3, 4)); 35 gfx::Insets(1, 2, 3, 4));
36 aura::RootWindow::GetInstance()->SetHostSize(gfx::Size(800, 600)); 36 aura::RootWindow::GetInstance()->SetHostSize(gfx::Size(800, 600));
37 container_.reset(new aura::Window(NULL)); 37 container_.reset(new aura::Window(NULL));
38 container_->Init(ui::Layer::LAYER_HAS_NO_TEXTURE); 38 container_->Init(ui::Layer::LAYER_NOT_DRAWN);
39 container_->SetBounds(gfx::Rect(0, 0, 500, 500)); 39 container_->SetBounds(gfx::Rect(0, 0, 500, 500));
40 layout_manager_ = new internal::CompactLayoutManager(); 40 layout_manager_ = new internal::CompactLayoutManager();
41 container_->SetLayoutManager(layout_manager_); 41 container_->SetLayoutManager(layout_manager_);
42 } 42 }
43 43
44 aura::Window* CreateTestWindow(const gfx::Rect& bounds) { 44 aura::Window* CreateTestWindow(const gfx::Rect& bounds) {
45 return aura::test::CreateTestWindowWithBounds(bounds, container_.get()); 45 return aura::test::CreateTestWindowWithBounds(bounds, container_.get());
46 } 46 }
47 47
48 // Returns widget owned by its parent, so doesn't need scoped_ptr<>. 48 // Returns widget owned by its parent, so doesn't need scoped_ptr<>.
(...skipping 29 matching lines...) Expand all
78 window->SetIntProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); 78 window->SetIntProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
79 EXPECT_TRUE(widget->IsVisible()); 79 EXPECT_TRUE(widget->IsVisible());
80 window->SetIntProperty(aura::client::kShowStateKey, 80 window->SetIntProperty(aura::client::kShowStateKey,
81 ui::SHOW_STATE_FULLSCREEN); 81 ui::SHOW_STATE_FULLSCREEN);
82 EXPECT_FALSE(widget->IsVisible()); 82 EXPECT_FALSE(widget->IsVisible());
83 window->SetIntProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); 83 window->SetIntProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
84 EXPECT_TRUE(widget->IsVisible()); 84 EXPECT_TRUE(widget->IsVisible());
85 } 85 }
86 86
87 } // namespace ash 87 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/base_layout_manager_unittest.cc ('k') | ash/wm/image_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698