| OLD | NEW |
| 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/shelf/shelf_layout_manager.h" | 5 #include "ash/shelf/shelf_layout_manager.h" |
| 6 | 6 |
| 7 #include "ash/accelerators/accelerator_controller.h" | 7 #include "ash/accelerators/accelerator_controller.h" |
| 8 #include "ash/accelerators/accelerator_table.h" | 8 #include "ash/accelerators/accelerator_table.h" |
| 9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
| 10 #include "ash/display/display_manager.h" | 10 #include "ash/display/display_manager.h" |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 340 |
| 341 void UpdateAutoHideStateNow() { | 341 void UpdateAutoHideStateNow() { |
| 342 GetShelfLayoutManager()->UpdateAutoHideStateNow(); | 342 GetShelfLayoutManager()->UpdateAutoHideStateNow(); |
| 343 } | 343 } |
| 344 | 344 |
| 345 aura::Window* CreateTestWindow() { | 345 aura::Window* CreateTestWindow() { |
| 346 aura::Window* window = new aura::Window(NULL); | 346 aura::Window* window = new aura::Window(NULL); |
| 347 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); | 347 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); |
| 348 window->SetType(aura::client::WINDOW_TYPE_NORMAL); | 348 window->SetType(aura::client::WINDOW_TYPE_NORMAL); |
| 349 window->Init(ui::LAYER_TEXTURED); | 349 window->Init(ui::LAYER_TEXTURED); |
| 350 SetDefaultParentByPrimaryRootWindow(window); | 350 ParentWindowInPrimaryRootWindow(window); |
| 351 return window; | 351 return window; |
| 352 } | 352 } |
| 353 | 353 |
| 354 views::Widget* CreateTestWidgetWithParams( | 354 views::Widget* CreateTestWidgetWithParams( |
| 355 const views::Widget::InitParams& params) { | 355 const views::Widget::InitParams& params) { |
| 356 views::Widget* out = new views::Widget; | 356 views::Widget* out = new views::Widget; |
| 357 out->Init(params); | 357 out->Init(params); |
| 358 out->Show(); | 358 out->Show(); |
| 359 return out; | 359 return out; |
| 360 } | 360 } |
| (...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT); | 1870 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT); |
| 1871 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 1871 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
| 1872 generator.ClickLeftButton(); | 1872 generator.ClickLeftButton(); |
| 1873 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); | 1873 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); |
| 1874 generator.ClickLeftButton(); | 1874 generator.ClickLeftButton(); |
| 1875 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 1875 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
| 1876 } | 1876 } |
| 1877 | 1877 |
| 1878 } // namespace internal | 1878 } // namespace internal |
| 1879 } // namespace ash | 1879 } // namespace ash |
| OLD | NEW |