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

Unified Diff: ui/gfx/display_change_notifier.h

Issue 1964153002: Move Screen, its impls, DisplayObserver and DisplayChangeNotifier to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tabs Created 4 years, 7 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 | « ui/gfx/BUILD.gn ('k') | ui/gfx/display_change_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display_change_notifier.h
diff --git a/ui/gfx/display_change_notifier.h b/ui/gfx/display_change_notifier.h
deleted file mode 100644
index 458dd6ac66c435fc44e477ec2066636f08ceae2f..0000000000000000000000000000000000000000
--- a/ui/gfx/display_change_notifier.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 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 UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_
-#define UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_
-
-#include <vector>
-
-#include "base/macros.h"
-#include "base/observer_list.h"
-#include "ui/gfx/gfx_export.h"
-
-namespace gfx {
-
-class Display;
-class DisplayObserver;
-
-// DisplayChangeNotifier is a class implementing the handling of DisplayObserver
-// notification for Screen.
-class GFX_EXPORT DisplayChangeNotifier {
- public:
- DisplayChangeNotifier();
- ~DisplayChangeNotifier();
-
- void AddObserver(DisplayObserver* observer);
-
- void RemoveObserver(DisplayObserver* observer);
-
- void NotifyDisplaysChanged(const std::vector<Display>& old_displays,
- const std::vector<Display>& new_displays);
-
- private:
- // The observers that need to be notified when a display is modified, added
- // or removed.
- base::ObserverList<DisplayObserver> observer_list_;
-
- DISALLOW_COPY_AND_ASSIGN(DisplayChangeNotifier);
-};
-
-} // namespace gfx
-
-#endif // UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_
-
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/display_change_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698