Chromium Code Reviews

Unified Diff: ui/display/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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « ui/display/display.gyp ('k') | ui/display/display_change_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display_change_notifier.h
diff --git a/ui/gfx/display_change_notifier.h b/ui/display/display_change_notifier.h
similarity index 75%
rename from ui/gfx/display_change_notifier.h
rename to ui/display/display_change_notifier.h
index 458dd6ac66c435fc44e477ec2066636f08ceae2f..744bd8f40e616edb47f105d0fa02c8fac5f48cb3 100644
--- a/ui/gfx/display_change_notifier.h
+++ b/ui/display/display_change_notifier.h
@@ -2,23 +2,26 @@
// 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_
+#ifndef UI_DISPLAY_DISPLAY_CHANGE_NOTIFIER_H_
+#define UI_DISPLAY_DISPLAY_CHANGE_NOTIFIER_H_
#include <vector>
#include "base/macros.h"
#include "base/observer_list.h"
-#include "ui/gfx/gfx_export.h"
+#include "ui/display/display_export.h"
namespace gfx {
-
class Display;
+}
+
+namespace display {
+using Display = gfx::Display;
class DisplayObserver;
// DisplayChangeNotifier is a class implementing the handling of DisplayObserver
// notification for Screen.
-class GFX_EXPORT DisplayChangeNotifier {
+class DISPLAY_EXPORT DisplayChangeNotifier {
public:
DisplayChangeNotifier();
~DisplayChangeNotifier();
@@ -38,7 +41,6 @@ class GFX_EXPORT DisplayChangeNotifier {
DISALLOW_COPY_AND_ASSIGN(DisplayChangeNotifier);
};
-} // namespace gfx
-
-#endif // UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_
+} // namespace display
+#endif // UI_DISPLAY_DISPLAY_CHANGE_NOTIFIER_H_
« no previous file with comments | « ui/display/display.gyp ('k') | ui/display/display_change_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine