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

Unified Diff: ui/display/manager/display_string_provider.h

Issue 2523873002: Remove DisplayChangeObserver ash dependencies. (Closed)
Patch Set: Remove comment. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/display/manager/display_string_provider.h
diff --git a/ui/display/manager/display_string_provider.h b/ui/display/manager/display_string_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..c54cf9aa6d9398f645c12058f97ba3570d01ba70
--- /dev/null
+++ b/ui/display/manager/display_string_provider.h
@@ -0,0 +1,24 @@
+// 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 UI_DISPLAY_MANAGER_DISPLAY_STRING_PROVIDER_H_
+#define UI_DISPLAY_MANAGER_DISPLAY_STRING_PROVIDER_H_
+
+#include <string>
+
+namespace display {
+
+// Provides generic display names loaded from resources.
+class DisplayStringProvider {
+ public:
+ virtual ~DisplayStringProvider() {}
+
+ virtual std::string GetInternalDisplayNameString() = 0;
+ virtual std::string GetVirtualDisplayNameString() = 0;
+ virtual std::string GetUnknownDisplayNameString() = 0;
oshima 2016/11/30 18:17:09 Using a interface looks overkill. Can't you just i
kylechar 2016/11/30 21:46:03 I discussed this with sadrul briefly. We will need
+};
+
+} // namespace display
+
+#endif // UI_DISPLAY_MANAGER_DISPLAY_STRING_PROVIDER_H_
« ash/display/display_change_observer_chromeos.cc ('K') | « ui/display/manager/display_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698