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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 shelf->SetState(state); | 338 shelf->SetState(state); |
339 } | 339 } |
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(ui::wm::WINDOW_TYPE_NORMAL); |
349 window->Init(ui::LAYER_TEXTURED); | 349 window->Init(ui::LAYER_TEXTURED); |
350 ParentWindowInPrimaryRootWindow(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(); |
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1917 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT); | 1917 shelf->SetAlignment(SHELF_ALIGNMENT_LEFT); |
1918 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 1918 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
1919 generator.ClickLeftButton(); | 1919 generator.ClickLeftButton(); |
1920 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); | 1920 EXPECT_TRUE(status_area_widget->IsMessageBubbleShown()); |
1921 generator.ClickLeftButton(); | 1921 generator.ClickLeftButton(); |
1922 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); | 1922 EXPECT_FALSE(status_area_widget->IsMessageBubbleShown()); |
1923 } | 1923 } |
1924 | 1924 |
1925 } // namespace internal | 1925 } // namespace internal |
1926 } // namespace ash | 1926 } // namespace ash |
OLD | NEW |