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

Side by Side Diff: ash/shelf/shelf_layout_manager_unittest.cc

Issue 121773003: Makes Window::Init take a WindowLayerType instead of LayerType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to master Created 6 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/root_window_controller_unittest.cc ('k') | ash/shell/keyboard_controller_proxy_stub.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/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
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
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
OLDNEW
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shell/keyboard_controller_proxy_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698