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

Unified Diff: ash/common/system/tray/system_tray_notifier.h

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/tray/system_tray_item.cc ('k') | ash/common/system/tray/system_tray_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/system_tray_notifier.h
diff --git a/ash/common/system/tray/system_tray_notifier.h b/ash/common/system/tray/system_tray_notifier.h
deleted file mode 100644
index 1b80a67a806e29d7b1ea8f34e67e63e7df049bee..0000000000000000000000000000000000000000
--- a/ash/common/system/tray/system_tray_notifier.h
+++ /dev/null
@@ -1,160 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
-#define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
-
-#include <string>
-
-#include "ash/ash_export.h"
-#include "ash/common/accessibility_types.h"
-#include "base/callback_forward.h"
-#include "base/macros.h"
-#include "base/observer_list.h"
-#include "base/strings/string16.h"
-#include "base/time/time.h"
-
-namespace ash {
-
-class AccessibilityObserver;
-class BluetoothObserver;
-class ClockObserver;
-class EnterpriseDomainObserver;
-class IMEObserver;
-class LastWindowClosedObserver;
-class LogoutButtonObserver;
-class NetworkObserver;
-class NetworkPortalDetectorObserver;
-class ScreenCaptureObserver;
-class ScreenShareObserver;
-class SessionLengthLimitObserver;
-class TracingObserver;
-class UserObserver;
-class VirtualKeyboardObserver;
-
-namespace mojom {
-enum class UpdateSeverity;
-}
-
-// Observer and notification manager for the ash system tray.
-class ASH_EXPORT SystemTrayNotifier {
- public:
- SystemTrayNotifier();
- ~SystemTrayNotifier();
-
- // Accessibility.
- void AddAccessibilityObserver(AccessibilityObserver* observer);
- void RemoveAccessibilityObserver(AccessibilityObserver* observer);
- void NotifyAccessibilityModeChanged(
- AccessibilityNotificationVisibility notify);
-
- // Bluetooth.
- void AddBluetoothObserver(BluetoothObserver* observer);
- void RemoveBluetoothObserver(BluetoothObserver* observer);
- void NotifyRefreshBluetooth();
- void NotifyBluetoothDiscoveringChanged();
-
- // Date and time.
- void AddClockObserver(ClockObserver* observer);
- void RemoveClockObserver(ClockObserver* observer);
- void NotifyRefreshClock();
- void NotifyDateFormatChanged();
- void NotifySystemClockTimeUpdated();
- void NotifySystemClockCanSetTimeChanged(bool can_set_time);
-
- // Enterprise domain.
- void AddEnterpriseDomainObserver(EnterpriseDomainObserver* observer);
- void RemoveEnterpriseDomainObserver(EnterpriseDomainObserver* observer);
- void NotifyEnterpriseDomainChanged();
-
- // Input methods.
- void AddIMEObserver(IMEObserver* observer);
- void RemoveIMEObserver(IMEObserver* observer);
- void NotifyRefreshIME();
- void NotifyRefreshIMEMenu(bool is_active);
-
- // Last window closed.
- void AddLastWindowClosedObserver(LastWindowClosedObserver* observer);
- void RemoveLastWindowClosedObserver(LastWindowClosedObserver* observer);
- void NotifyLastWindowClosed();
-
- // Logout button.
- void AddLogoutButtonObserver(LogoutButtonObserver* observer);
- void RemoveLogoutButtonObserver(LogoutButtonObserver* observer);
- void NotifyShowLoginButtonChanged(bool show_login_button);
- void NotifyLogoutDialogDurationChanged(base::TimeDelta duration);
-
- // Network.
- void AddNetworkObserver(NetworkObserver* observer);
- void RemoveNetworkObserver(NetworkObserver* observer);
- void NotifyRequestToggleWifi();
-
- // Network portal detector.
- void AddNetworkPortalDetectorObserver(
- NetworkPortalDetectorObserver* observer);
- void RemoveNetworkPortalDetectorObserver(
- NetworkPortalDetectorObserver* observer);
- void NotifyOnCaptivePortalDetected(const std::string& guid);
-
- // Screen capture.
- void AddScreenCaptureObserver(ScreenCaptureObserver* observer);
- void RemoveScreenCaptureObserver(ScreenCaptureObserver* observer);
- void NotifyScreenCaptureStart(const base::Closure& stop_callback,
- const base::string16& sharing_app_name);
- void NotifyScreenCaptureStop();
-
- // Screen share.
- void AddScreenShareObserver(ScreenShareObserver* observer);
- void RemoveScreenShareObserver(ScreenShareObserver* observer);
- void NotifyScreenShareStart(const base::Closure& stop_callback,
- const base::string16& helper_name);
- void NotifyScreenShareStop();
-
- // Session length limit.
- void AddSessionLengthLimitObserver(SessionLengthLimitObserver* observer);
- void RemoveSessionLengthLimitObserver(SessionLengthLimitObserver* observer);
- void NotifySessionStartTimeChanged();
- void NotifySessionLengthLimitChanged();
-
- // Tracing.
- void AddTracingObserver(TracingObserver* observer);
- void RemoveTracingObserver(TracingObserver* observer);
- void NotifyTracingModeChanged(bool value);
-
- // User.
- void AddUserObserver(UserObserver* observer);
- void RemoveUserObserver(UserObserver* observer);
- void NotifyUserUpdate();
- void NotifyUserAddedToSession();
-
- // Virtual keyboard.
- void AddVirtualKeyboardObserver(VirtualKeyboardObserver* observer);
- void RemoveVirtualKeyboardObserver(VirtualKeyboardObserver* observer);
- void NotifyVirtualKeyboardSuppressionChanged(bool suppressed);
-
- private:
- base::ObserverList<AccessibilityObserver> accessibility_observers_;
- base::ObserverList<BluetoothObserver> bluetooth_observers_;
- base::ObserverList<ClockObserver> clock_observers_;
- base::ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_;
- base::ObserverList<IMEObserver> ime_observers_;
- base::ObserverList<LastWindowClosedObserver> last_window_closed_observers_;
- base::ObserverList<LogoutButtonObserver> logout_button_observers_;
- base::ObserverList<NetworkObserver> network_observers_;
- base::ObserverList<NetworkPortalDetectorObserver>
- network_portal_detector_observers_;
- base::ObserverList<ScreenCaptureObserver> screen_capture_observers_;
- base::ObserverList<ScreenShareObserver> screen_share_observers_;
- base::ObserverList<SessionLengthLimitObserver>
- session_length_limit_observers_;
- base::ObserverList<TracingObserver> tracing_observers_;
- base::ObserverList<UserObserver> user_observers_;
- base::ObserverList<VirtualKeyboardObserver> virtual_keyboard_observers_;
-
- DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
« no previous file with comments | « ash/common/system/tray/system_tray_item.cc ('k') | ash/common/system/tray/system_tray_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698