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

Side by Side Diff: ash/shell.h

Issue 2797743002: ash: Merge LoginStatus update code path (Closed)
Patch Set: for #2 comments Created 3 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
« no previous file with comments | « ash/mus/system_tray_delegate_mus.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 <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // Creates a default views::NonClientFrameView for use by windows in the 266 // Creates a default views::NonClientFrameView for use by windows in the
267 // Ash environment. 267 // Ash environment.
268 views::NonClientFrameView* CreateDefaultNonClientFrameView( 268 views::NonClientFrameView* CreateDefaultNonClientFrameView(
269 views::Widget* widget); 269 views::Widget* widget);
270 270
271 // Sets work area insets of the display containing |window|, pings observers. 271 // Sets work area insets of the display containing |window|, pings observers.
272 void SetDisplayWorkAreaInsets(aura::Window* window, 272 void SetDisplayWorkAreaInsets(aura::Window* window,
273 const gfx::Insets& insets); 273 const gfx::Insets& insets);
274 274
275 // Called when the user logs in.
276 // TODO(jamescook): Merge this with WmShell::UpdateAfterLoginStatusChange()?
277 void OnLoginStateChanged(LoginStatus status);
278
279 // Called when the application is exiting. 275 // Called when the application is exiting.
280 void OnAppTerminating(); 276 void OnAppTerminating();
281 277
282 // Called when the screen is locked (after the lock window is visible) or 278 // Called when the screen is locked (after the lock window is visible) or
283 // unlocked. 279 // unlocked.
284 void OnLockStateChanged(bool locked); 280 void OnLockStateChanged(bool locked);
285 281
286 // Called when a casting session is started or stopped. 282 // Called when a casting session is started or stopped.
287 void OnCastingSessionStartedOrStopped(bool started); 283 void OnCastingSessionStartedOrStopped(bool started);
288 284
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override; 633 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override;
638 ui::EventTargeter* GetEventTargeter() override; 634 ui::EventTargeter* GetEventTargeter() override;
639 635
640 // aura::client::ActivationChangeObserver: 636 // aura::client::ActivationChangeObserver:
641 void OnWindowActivated(ActivationReason reason, 637 void OnWindowActivated(ActivationReason reason,
642 aura::Window* gained_active, 638 aura::Window* gained_active,
643 aura::Window* lost_active) override; 639 aura::Window* lost_active) override;
644 640
645 // SessionStateObserver: 641 // SessionStateObserver:
646 void SessionStateChanged(session_manager::SessionState state) override; 642 void SessionStateChanged(session_manager::SessionState state) override;
643 void LoginStatusChanged(LoginStatus login_status) override;
647 644
648 // Callback for prefs::ConnectToPrefService. 645 // Callback for prefs::ConnectToPrefService.
649 void OnPrefServiceInitialized(std::unique_ptr<::PrefService> pref_service); 646 void OnPrefServiceInitialized(std::unique_ptr<::PrefService> pref_service);
650 647
651 static Shell* instance_; 648 static Shell* instance_;
652 649
653 // Only valid in mash, for classic ash this is null. 650 // Only valid in mash, for classic ash this is null.
654 static aura::WindowTreeClient* window_tree_client_; 651 static aura::WindowTreeClient* window_tree_client_;
655 static aura::WindowManagerClient* window_manager_client_; 652 static aura::WindowManagerClient* window_manager_client_;
656 653
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 base::ObserverList<ShellObserver> shell_observers_; 813 base::ObserverList<ShellObserver> shell_observers_;
817 814
818 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 815 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
819 816
820 DISALLOW_COPY_AND_ASSIGN(Shell); 817 DISALLOW_COPY_AND_ASSIGN(Shell);
821 }; 818 };
822 819
823 } // namespace ash 820 } // namespace ash
824 821
825 #endif // ASH_SHELL_H_ 822 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/mus/system_tray_delegate_mus.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698