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

Side by Side Diff: ui/display/desktop.cc

Issue 2108933003: Reorder browser list on workspace switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved code into ChromeBrowserMainExtraPartsX11 Created 4 years, 5 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/display/desktop.h"
6
7 namespace display {
8
9 namespace {
10
11 Desktop* g_desktop;
12
13 } // namespace
14
15 Desktop::Desktop() {}
16
17 Desktop::~Desktop() {}
18
19 // static
20 Desktop* Desktop::GetDesktop() {
21 return g_desktop;
22 }
23
24 // static
25 void Desktop::SetDesktopInstance(Desktop* instance) {
26 g_desktop = instance;
27 }
28
29 void Desktop::AddObserver(DesktopObserver* observer) {
30 desktop_observer_list_.AddObserver(observer);
31 }
32
33 void Desktop::RemoveObserver(DesktopObserver* observer) {
34 desktop_observer_list_.RemoveObserver(observer);
35 }
36
37 } // namespace display
OLDNEW
« ui/display/desktop.h ('K') | « ui/display/desktop.h ('k') | ui/display/desktop_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698