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

Side by Side Diff: ash/shell.h

Issue 10008074: Cancel partial screenshot UI when lock happens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: coding style fix Created 8 years, 8 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 | « no previous file | 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>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/system/user/login_status.h"
13 #include "ash/wm/shelf_auto_hide_behavior.h" 14 #include "ash/wm/shelf_auto_hide_behavior.h"
14 #include "base/basictypes.h" 15 #include "base/basictypes.h"
15 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
16 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
17 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
18 #include "base/observer_list.h" 19 #include "base/observer_list.h"
19 #include "ui/gfx/size.h" 20 #include "ui/gfx/size.h"
20 #include "ui/gfx/insets.h" 21 #include "ui/gfx/insets.h"
21 22
22 class CommandLine; 23 class CommandLine;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Rotates focus through containers that can receive focus. 167 // Rotates focus through containers that can receive focus.
167 void RotateFocus(Direction direction); 168 void RotateFocus(Direction direction);
168 169
169 // Sets the work area insets of the monitor that contains |window|, 170 // Sets the work area insets of the monitor that contains |window|,
170 // this notifies observers too. 171 // this notifies observers too.
171 // TODO(sky): this no longer really replicates what happens and is unreliable. 172 // TODO(sky): this no longer really replicates what happens and is unreliable.
172 // Remove this. 173 // Remove this.
173 void SetMonitorWorkAreaInsets(aura::Window* window, 174 void SetMonitorWorkAreaInsets(aura::Window* window,
174 const gfx::Insets& insets); 175 const gfx::Insets& insets);
175 176
177 // Called when the user logs in.
178 void OnLoginStateChanged(user::LoginStatus status);
179
180 // Called when the application is exiting.
181 void OnAppTerminating();
182
183 // Called when the screen is locked (after the lock window is visible) or
184 // unlocked.
185 void OnLockStateChanged(bool locked);
186
176 // Initializes |launcher_|. Does nothing if it's already initialized. 187 // Initializes |launcher_|. Does nothing if it's already initialized.
177 void CreateLauncher(); 188 void CreateLauncher();
178 189
179 // Adds/removes observer. 190 // Adds/removes observer.
180 void AddShellObserver(ShellObserver* observer); 191 void AddShellObserver(ShellObserver* observer);
181 void RemoveShellObserver(ShellObserver* observer); 192 void RemoveShellObserver(ShellObserver* observer);
182 193
183 #if !defined(OS_MACOSX) 194 #if !defined(OS_MACOSX)
184 AcceleratorController* accelerator_controller() { 195 AcceleratorController* accelerator_controller() {
185 return accelerator_controller_.get(); 196 return accelerator_controller_.get();
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 370
360 // Used by ash/shell. 371 // Used by ash/shell.
361 content::BrowserContext* browser_context_; 372 content::BrowserContext* browser_context_;
362 373
363 DISALLOW_COPY_AND_ASSIGN(Shell); 374 DISALLOW_COPY_AND_ASSIGN(Shell);
364 }; 375 };
365 376
366 } // namespace ash 377 } // namespace ash
367 378
368 #endif // ASH_SHELL_H_ 379 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698