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

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

Issue 115153002: wm: public window_types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ozone deps Created 7 years 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/window_watcher.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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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/window_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698