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

Unified Diff: chromeos/display/output_configurator.h

Issue 15067012: Move chromeos specific utility functions for display to chromeos/display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added test Created 7 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 | « chromeos/chromeos.gyp ('k') | chromeos/display/output_configurator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/display/output_configurator.h
diff --git a/chromeos/display/output_configurator.h b/chromeos/display/output_configurator.h
index 43060acc52353cfcd955748982a66cf7b0276f15..84de2d0f59ba2b4d8ea7629e7404bf443f34ad84 100644
--- a/chromeos/display/output_configurator.h
+++ b/chromeos/display/output_configurator.h
@@ -6,6 +6,7 @@
#define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
#include <map>
+#include <string>
#include <vector>
#include "base/basictypes.h"
@@ -62,9 +63,10 @@ class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher {
// XInput device ID or 0 if this output isn't a touchscreen.
int touch_device_id;
- // TODO(oshima): Move xrandr related functions to here
- // from ui/base/x and replace this with display id.
- int index;
+ // Display id for this output.
+ int64 display_id;
+
+ bool has_display_id;
};
struct CoordinateTransformation {
@@ -108,8 +110,8 @@ class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher {
virtual ~StateController() {}
// Called when displays are detected.
- virtual OutputState GetStateForOutputs(
- const std::vector<OutputSnapshot>& outputs) const = 0;
+ virtual OutputState GetStateForDisplayIds(
+ const std::vector<int64>& display_ids) const = 0;
};
// Interface for classes that perform actions on behalf of OutputController.
@@ -216,9 +218,6 @@ class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher {
// See crbug.com/130188 for initial discussion.
static const int kVerticalGap = 60;
- // Returns true if an output named |name| is an internal display.
- static bool IsInternalOutputName(const std::string& name);
-
OutputConfigurator();
virtual ~OutputConfigurator();
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/display/output_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698