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

Unified Diff: ui/display/chromeos/display_util.h

Issue 788423002: Add display task to trigger display configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor3
Patch Set: . Created 6 years 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/chromeos/display_util.h
diff --git a/ui/display/chromeos/display_util.h b/ui/display/chromeos/display_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..b58b28508406d46f24c3a4e53c222d17f5fddcee
--- /dev/null
+++ b/ui/display/chromeos/display_util.h
@@ -0,0 +1,32 @@
+// 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_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
+#define UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_
+
+#include <string>
+#include <vector>
+
+#include "ui/display/chromeos/display_configurator.h"
+#include "ui/display/types/display_constants.h"
+
+namespace ui {
+
+// Returns a string describing |state|.
+std::string DisplayPowerStateToString(chromeos::DisplayPowerState state);
+
+// Returns a string describing |state|.
+std::string DisplayStateToString(MultipleDisplayState state);
Daniel Erat 2014/12/11 23:34:07 MultipleDisplayStateToString?
+
+// Returns the number of displays in |displays| that should be turned on, per
+// |state|. If |display_power| is non-NULL, it is updated to contain the
+// on/off state of each corresponding entry in |displays|.
+int DISPLAY_EXPORT GetDisplayPower(
+ const std::vector<DisplayConfigurator::DisplayState>& display_states,
+ chromeos::DisplayPowerState state,
+ std::vector<bool>* display_power);
+
+} // namespace ui
+
+#endif // UI_DISPLAY_CHROMEOS_DISPLAY_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698