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

Side by Side Diff: ash/shell.h

Issue 10263011: chromeos: Add support for dimming the screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 8 years, 7 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/ash.gyp ('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 #pragma once 7 #pragma once
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class FocusCycler; 70 class FocusCycler;
71 class InputMethodEventFilter; 71 class InputMethodEventFilter;
72 class KeyRewriterEventFilter; 72 class KeyRewriterEventFilter;
73 class MagnificationController; 73 class MagnificationController;
74 class MonitorController; 74 class MonitorController;
75 class PanelLayoutManager; 75 class PanelLayoutManager;
76 class PartialScreenshotEventFilter; 76 class PartialScreenshotEventFilter;
77 class ResizeShadowController; 77 class ResizeShadowController;
78 class RootWindowEventFilter; 78 class RootWindowEventFilter;
79 class RootWindowLayoutManager; 79 class RootWindowLayoutManager;
80 class ScreenDimmer;
80 class ShadowController; 81 class ShadowController;
81 class ShelfLayoutManager; 82 class ShelfLayoutManager;
82 class ShellContextMenu; 83 class ShellContextMenu;
83 class SystemGestureEventFilter; 84 class SystemGestureEventFilter;
84 class StackingController; 85 class StackingController;
85 class TooltipController; 86 class TooltipController;
86 class VisibilityController; 87 class VisibilityController;
87 class WindowModalityController; 88 class WindowModalityController;
88 class WorkspaceController; 89 class WorkspaceController;
89 } 90 }
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 230
230 ShellDelegate* delegate() { return delegate_.get(); } 231 ShellDelegate* delegate() { return delegate_.get(); }
231 SystemTrayDelegate* tray_delegate() { return tray_delegate_.get(); } 232 SystemTrayDelegate* tray_delegate() { return tray_delegate_.get(); }
232 UserWallpaperDelegate* user_wallpaper_delegate() { 233 UserWallpaperDelegate* user_wallpaper_delegate() {
233 return user_wallpaper_delegate_.get(); 234 return user_wallpaper_delegate_.get();
234 } 235 }
235 236
236 internal::MagnificationController* magnification_controller() { 237 internal::MagnificationController* magnification_controller() {
237 return magnification_controller_.get(); 238 return magnification_controller_.get();
238 } 239 }
240 internal::ScreenDimmer* screen_dimmer() {
241 return screen_dimmer_.get();
242 }
239 243
240 Launcher* launcher() { return launcher_.get(); } 244 Launcher* launcher() { return launcher_.get(); }
241 245
242 const ScreenAsh* screen() { return screen_; } 246 const ScreenAsh* screen() { return screen_; }
243 247
244 // Force the shelf to query for it's current visibility state. 248 // Force the shelf to query for it's current visibility state.
245 void UpdateShelfVisibility(); 249 void UpdateShelfVisibility();
246 250
247 // Sets/gets the shelf auto-hide behavior. 251 // Sets/gets the shelf auto-hide behavior.
248 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); 252 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 scoped_ptr<internal::TooltipController> tooltip_controller_; 336 scoped_ptr<internal::TooltipController> tooltip_controller_;
333 scoped_ptr<internal::VisibilityController> visibility_controller_; 337 scoped_ptr<internal::VisibilityController> visibility_controller_;
334 scoped_ptr<DesktopBackgroundController> desktop_background_controller_; 338 scoped_ptr<DesktopBackgroundController> desktop_background_controller_;
335 scoped_ptr<PowerButtonController> power_button_controller_; 339 scoped_ptr<PowerButtonController> power_button_controller_;
336 scoped_ptr<VideoDetector> video_detector_; 340 scoped_ptr<VideoDetector> video_detector_;
337 scoped_ptr<WindowCycleController> window_cycle_controller_; 341 scoped_ptr<WindowCycleController> window_cycle_controller_;
338 scoped_ptr<internal::FocusCycler> focus_cycler_; 342 scoped_ptr<internal::FocusCycler> focus_cycler_;
339 scoped_ptr<internal::EventClientImpl> event_client_; 343 scoped_ptr<internal::EventClientImpl> event_client_;
340 scoped_ptr<internal::MonitorController> monitor_controller_; 344 scoped_ptr<internal::MonitorController> monitor_controller_;
341 scoped_ptr<internal::MagnificationController> magnification_controller_; 345 scoped_ptr<internal::MagnificationController> magnification_controller_;
346 scoped_ptr<internal::ScreenDimmer> screen_dimmer_;
342 347
343 // An event filter that rewrites or drops a key event. 348 // An event filter that rewrites or drops a key event.
344 scoped_ptr<internal::KeyRewriterEventFilter> key_rewriter_filter_; 349 scoped_ptr<internal::KeyRewriterEventFilter> key_rewriter_filter_;
345 350
346 // An event filter that pre-handles key events while the partial 351 // An event filter that pre-handles key events while the partial
347 // screenshot UI is active. 352 // screenshot UI is active.
348 scoped_ptr<internal::PartialScreenshotEventFilter> partial_screenshot_filter_; 353 scoped_ptr<internal::PartialScreenshotEventFilter> partial_screenshot_filter_;
349 354
350 // An event filter which handles system level gestures 355 // An event filter which handles system level gestures
351 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_; 356 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_;
(...skipping 24 matching lines...) Expand all
376 381
377 // Used by ash/shell. 382 // Used by ash/shell.
378 content::BrowserContext* browser_context_; 383 content::BrowserContext* browser_context_;
379 384
380 DISALLOW_COPY_AND_ASSIGN(Shell); 385 DISALLOW_COPY_AND_ASSIGN(Shell);
381 }; 386 };
382 387
383 } // namespace ash 388 } // namespace ash
384 389
385 #endif // ASH_SHELL_H_ 390 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698