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

Side by Side Diff: ash/shell.h

Issue 12313118: Refactor: Shelf Widget (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: formatting and moved a couple unit tests Created 7 years, 9 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
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 #ifndef ASH_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/shelf_types.h" 12 #include "ash/shelf/shelf_types.h"
13 #include "ash/system/user/login_status.h" 13 #include "ash/system/user/login_status.h"
14 #include "ash/wm/cursor_manager.h" 14 #include "ash/wm/cursor_manager.h"
15 #include "ash/wm/system_modal_container_event_filter_delegate.h" 15 #include "ash/wm/system_modal_container_event_filter_delegate.h"
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.h"
21 #include "ui/aura/client/activation_change_observer.h" 21 #include "ui/aura/client/activation_change_observer.h"
22 #include "ui/base/events/event_target.h" 22 #include "ui/base/events/event_target.h"
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 } 435 }
436 #endif // defined(OS_CHROMEOS) 436 #endif // defined(OS_CHROMEOS)
437 437
438 RootWindowHostFactory* root_window_host_factory() { 438 RootWindowHostFactory* root_window_host_factory() {
439 return root_window_host_factory_.get(); 439 return root_window_host_factory_.get();
440 } 440 }
441 441
442 // MessageCenter is a global list of currently displayed notifications. 442 // MessageCenter is a global list of currently displayed notifications.
443 message_center::MessageCenter* message_center(); 443 message_center::MessageCenter* message_center();
444 444
445 LauncherModel* launcher_model() {
446 return launcher_model_.get();
447 }
448
449 // Returns the launcher delegate, creating if necesary.
450 LauncherDelegate* GetLauncherDelegate();
451
445 private: 452 private:
446 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); 453 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
447 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); 454 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
448 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); 455 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
449 friend class internal::RootWindowController; 456 friend class internal::RootWindowController;
450 friend class test::ShellTestApi; 457 friend class test::ShellTestApi;
451 friend class shell::WindowWatcher; 458 friend class shell::WindowWatcher;
452 459
453 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; 460 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair;
454 461
455 explicit Shell(ShellDelegate* delegate); 462 explicit Shell(ShellDelegate* delegate);
456 virtual ~Shell(); 463 virtual ~Shell();
457 464
458 void Init(); 465 void Init();
459 466
460 LauncherModel* launcher_model() {
461 return launcher_model_.get();
462 }
463
464 // Returns the launcher delegate, creating if necesary.
465 LauncherDelegate* GetLauncherDelegate();
466
467 // Initializes the root window and root window controller so that it 467 // Initializes the root window and root window controller so that it
468 // can host browser windows. 468 // can host browser windows.
469 void InitRootWindowController(internal::RootWindowController* root); 469 void InitRootWindowController(internal::RootWindowController* root);
470 470
471 // Initializes the layout managers and event filters specific for 471 // Initializes the layout managers and event filters specific for
472 // primary display. 472 // primary display.
473 void InitLayoutManagersForPrimaryDisplay( 473 void InitLayoutManagersForPrimaryDisplay(
474 internal::RootWindowController* root_window_controller); 474 internal::RootWindowController* root_window_controller);
475 475
476 // ash::internal::SystemModalContainerEventFilterDelegate overrides: 476 // ash::internal::SystemModalContainerEventFilterDelegate overrides:
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 594
595 // For testing only: simulate that a modal window is open 595 // For testing only: simulate that a modal window is open
596 bool simulate_modal_window_open_for_testing_; 596 bool simulate_modal_window_open_for_testing_;
597 597
598 DISALLOW_COPY_AND_ASSIGN(Shell); 598 DISALLOW_COPY_AND_ASSIGN(Shell);
599 }; 599 };
600 600
601 } // namespace ash 601 } // namespace ash
602 602
603 #endif // ASH_SHELL_H_ 603 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698