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 | 341 |
342 void UpdateAutoHideStateNow() { | 342 void UpdateAutoHideStateNow() { |
343 GetShelfLayoutManager()->UpdateAutoHideStateNow(); | 343 GetShelfLayoutManager()->UpdateAutoHideStateNow(); |
344 } | 344 } |
345 | 345 |
346 aura::Window* CreateTestWindow() { | 346 aura::Window* CreateTestWindow() { |
347 aura::Window* window = new aura::Window(NULL); | 347 aura::Window* window = new aura::Window(NULL); |
348 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); | 348 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); |
349 window->SetType(ui::wm::WINDOW_TYPE_NORMAL); | 349 window->SetType(ui::wm::WINDOW_TYPE_NORMAL); |
350 window->Init(ui::LAYER_TEXTURED); | 350 window->Init(aura::WINDOW_LAYER_TEXTURED); |
351 ParentWindowInPrimaryRootWindow(window); | 351 ParentWindowInPrimaryRootWindow(window); |
352 return window; | 352 return window; |
353 } | 353 } |
354 | 354 |
355 views::Widget* CreateTestWidgetWithParams( | 355 views::Widget* CreateTestWidgetWithParams( |
356 const views::Widget::InitParams& params) { | 356 const views::Widget::InitParams& params) { |
357 views::Widget* out = new views::Widget; | 357 views::Widget* out = new views::Widget; |
358 out->Init(params); | 358 out->Init(params); |
359 out->Show(); | 359 out->Show(); |
360 return out; | 360 return out; |
(...skipping 1556 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 |