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

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

Issue 230763004: Split ui/display types into separate module and have Ozone depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 8 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 | « ash/wm/power_button_controller.cc ('k') | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/display_configurator.h
diff --git a/ui/display/chromeos/display_configurator.h b/ui/display/chromeos/display_configurator.h
index 26a423e71bbcf3a5b12656578c73a93eecbe20d0..028a902ef48535579157169f3f0e7c3a6fc77746 100644
--- a/ui/display/chromeos/display_configurator.h
+++ b/ui/display/chromeos/display_configurator.h
@@ -16,9 +16,9 @@
#include "base/observer_list.h"
#include "base/timer/timer.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
-#include "ui/display/chromeos/native_display_observer.h"
-#include "ui/display/display_constants.h"
#include "ui/display/display_export.h"
+#include "ui/display/types/chromeos/native_display_observer.h"
+#include "ui/display/types/display_constants.h"
namespace gfx {
class Point;
@@ -182,13 +182,12 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
mirroring_controller_ = controller;
}
- // Replaces |native_display_delegate_| with |delegate| and sets
- // |configure_display_| to true. Should be called before Init().
- void SetNativeDisplayDelegateForTesting(
- scoped_ptr<NativeDisplayDelegate> delegate);
-
- void SetTouchscreenDelegateForTesting(
- scoped_ptr<TouchscreenDelegate> delegate);
+ // Replaces |native_display_delegate_| and |touchscreen_delegate_| with the 2
+ // delegates passed in and sets |configure_display_| to true. Should be called
+ // before Init().
+ void SetDelegatesForTesting(
+ scoped_ptr<NativeDisplayDelegate> display_delegate,
+ scoped_ptr<TouchscreenDelegate> touchscreen_delegate);
// Sets the initial value of |power_state_|. Must be called before Start().
void SetInitialDisplayPower(chromeos::DisplayPowerState power_state);
@@ -277,6 +276,15 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
typedef std::map<ContentProtectionClientId, ContentProtections>
ProtectionRequests;
+ // If |native_display_delegate_| and |touchscreen_delegate_| are not set, then
+ // set them to the passed in values.
+ void InitializeDelegates(
+ scoped_ptr<NativeDisplayDelegate> display_delegate,
+ scoped_ptr<TouchscreenDelegate> touchscreen_delegate);
+
+ // Performs platform specific delegate initialization.
+ void PlatformInitialize();
+
// Updates |cached_displays_| to contain currently-connected displays. Calls
// |delegate_->GetDisplays()| and then does additional work, like finding the
// mirror mode and setting user-preferred modes. Note that the server must be
« no previous file with comments | « ash/wm/power_button_controller.cc ('k') | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698