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

Side by Side Diff: chromeos/dbus/console_service_client.h

Issue 697493002: Support transition between chrome and user mode console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DBUS API to support transition between chrome and console Created 6 years, 1 month 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 2014 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 #ifndef CHROMEOS_DBUS_CONSOLE_SERVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_CONSOLE_SERVICE_CLIENT_H_
7
8 #include "base/observer_list.h"
9 #include "chromeos/chromeos_export.h"
10 #include "chromeos/dbus/dbus_client.h"
11
12 namespace chromeos {
13
14 class CHROMEOS_EXPORT ConsoleServiceClient : public DBusClient {
Daniel Erat 2014/10/31 18:15:02 should this be named ConsoleServiceProvider? i th
dsodman 2014/10/31 18:43:25 I think that is a much bigger change than what I'm
15 public:
16 class Observer {
17 public:
18 virtual void OnActivateConsole(int console_id) = 0;
19
20 protected:
21 virtual ~Observer() {}
22 };
23
24 virtual void AddObserver(Observer* observer) = 0;
25 virtual void RemoveObserver(Observer* observer) = 0;
26 virtual bool HasObserver(Observer* observer) = 0;
27
28 static ConsoleServiceClient* Create();
29 static ConsoleServiceClient* GetInstance();
30 virtual ~ConsoleServiceClient() override;
31
32 protected:
33 ConsoleServiceClient();
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(ConsoleServiceClient);
37 };
38
39 } // namespace chromeos
40
41 #endif // CHROMEOS_DBUS_CROS_CONSOLE_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698