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

Side by Side Diff: ash/shell.h

Issue 11017079: Remove Shell::shelf()|status_area_widget()|launcher() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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/screen_ash.cc ('k') | ash/shell.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 #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
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 class NestedDispatcherController; 68 class NestedDispatcherController;
69 class PowerButtonController; 69 class PowerButtonController;
70 class ScreenAsh; 70 class ScreenAsh;
71 class ShellDelegate; 71 class ShellDelegate;
72 class ShellObserver; 72 class ShellObserver;
73 class SystemTrayDelegate; 73 class SystemTrayDelegate;
74 class SystemTray; 74 class SystemTray;
75 class UserActivityDetector; 75 class UserActivityDetector;
76 class UserWallpaperDelegate; 76 class UserWallpaperDelegate;
77 class VideoDetector; 77 class VideoDetector;
78 class WebNotificationTray;
78 class WindowCycleController; 79 class WindowCycleController;
79 80
80 namespace internal { 81 namespace internal {
81 class AcceleratorFilter; 82 class AcceleratorFilter;
82 class ActivationController; 83 class ActivationController;
83 class AppListController; 84 class AppListController;
84 class CaptureController; 85 class CaptureController;
85 class DragDropController; 86 class DragDropController;
86 class EventClientImpl; 87 class EventClientImpl;
87 class EventRewriterEventFilter; 88 class EventRewriterEventFilter;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Sets the work area insets of the display that contains |window|, 231 // Sets the work area insets of the display that contains |window|,
231 // this notifies observers too. 232 // this notifies observers too.
232 // TODO(sky): this no longer really replicates what happens and is unreliable. 233 // TODO(sky): this no longer really replicates what happens and is unreliable.
233 // Remove this. 234 // Remove this.
234 void SetDisplayWorkAreaInsets(aura::Window* window, 235 void SetDisplayWorkAreaInsets(aura::Window* window,
235 const gfx::Insets& insets); 236 const gfx::Insets& insets);
236 237
237 // Called when the user logs in. 238 // Called when the user logs in.
238 void OnLoginStateChanged(user::LoginStatus status); 239 void OnLoginStateChanged(user::LoginStatus status);
239 240
241 // Called when the login status changes.
242 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|.
243 void UpdateAfterLoginStatusChange(user::LoginStatus status);
244
240 // Called when the application is exiting. 245 // Called when the application is exiting.
241 void OnAppTerminating(); 246 void OnAppTerminating();
242 247
243 // Called when the screen is locked (after the lock window is visible) or 248 // Called when the screen is locked (after the lock window is visible) or
244 // unlocked. 249 // unlocked.
245 void OnLockStateChanged(bool locked); 250 void OnLockStateChanged(bool locked);
246 251
247 // Initializes |launcher_|. Does nothing if it's already initialized. 252 // Initializes |launcher_|. Does nothing if it's already initialized.
248 void CreateLauncher(); 253 void CreateLauncher();
249 254
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 } 314 }
310 315
311 HighContrastController* high_contrast_controller() { 316 HighContrastController* high_contrast_controller() {
312 return high_contrast_controller_.get(); 317 return high_contrast_controller_.get();
313 } 318 }
314 319
315 internal::MagnificationController* magnification_controller() { 320 internal::MagnificationController* magnification_controller() {
316 return magnification_controller_.get(); 321 return magnification_controller_.get();
317 } 322 }
318 323
319 // TODO(oshima): Remove methods that are moved to RootWindowController.
320 Launcher* launcher();
321
322 const ScreenAsh* screen() { return screen_.get(); } 324 const ScreenAsh* screen() { return screen_.get(); }
323 325
324 // Force the shelf to query for it's current visibility state. 326 // Force the shelf to query for it's current visibility state.
325 void UpdateShelfVisibility(); 327 void UpdateShelfVisibility();
326 328
327 // Sets/gets the shelf auto-hide behavior. 329 // Sets/gets the shelf auto-hide behavior.
328 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); 330 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior);
329 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; 331 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const;
330 332
331 void SetShelfAlignment(ShelfAlignment alignment); 333 void SetShelfAlignment(ShelfAlignment alignment);
332 ShelfAlignment GetShelfAlignment(); 334 ShelfAlignment GetShelfAlignment();
333 335
334 // Dims or undims the screen. 336 // Dims or undims the screen.
335 void SetDimming(bool should_dim); 337 void SetDimming(bool should_dim);
336 338
337 // Creates modal background, which is a partially-opaque fullscreen 339 // Creates modal background, which is a partially-opaque fullscreen
338 // window, on all displays. 340 // window, on all displays.
339 void CreateModalBackground(); 341 void CreateModalBackground();
340 342
341 // Called when a modal window is removed. It will activate 343 // Called when a modal window is removed. It will activate
342 // another modal window if any, or remove modal screens 344 // another modal window if any, or remove modal screens
343 // on all displays. 345 // on all displays.
344 void OnModalWindowRemoved(aura::Window* removed); 346 void OnModalWindowRemoved(aura::Window* removed);
345 347
346 // TODO(sky): don't expose this! 348 // Returns WebNotificationTray on the primary root window.
347 internal::ShelfLayoutManager* shelf() const; 349 WebNotificationTray* GetWebNotificationTray();
348
349 internal::StatusAreaWidget* status_area_widget() const;
350 350
351 // Convenience accessor for members of StatusAreaWidget. 351 // Convenience accessor for members of StatusAreaWidget.
352 SystemTrayDelegate* tray_delegate(); 352 SystemTrayDelegate* tray_delegate();
353 SystemTray* system_tray(); 353 SystemTray* system_tray();
354 354
355 static void set_initially_hide_cursor(bool hide) { 355 static void set_initially_hide_cursor(bool hide) {
356 initially_hide_cursor_ = hide; 356 initially_hide_cursor_ = hide;
357 } 357 }
358 358
359 internal::ResizeShadowController* resize_shadow_controller() { 359 internal::ResizeShadowController* resize_shadow_controller() {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 501
502 // For testing only: simulate that a modal window is open 502 // For testing only: simulate that a modal window is open
503 bool simulate_modal_window_open_for_testing_; 503 bool simulate_modal_window_open_for_testing_;
504 504
505 DISALLOW_COPY_AND_ASSIGN(Shell); 505 DISALLOW_COPY_AND_ASSIGN(Shell);
506 }; 506 };
507 507
508 } // namespace ash 508 } // namespace ash
509 509
510 #endif // ASH_SHELL_H_ 510 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/screen_ash.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698