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

Unified Diff: chromeos/display/native_display_delegate.h

Issue 192483007: Move chromeos/display/* to ui/display/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include display.gyp into ChromeOS builds only Created 6 years, 9 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/display/OWNERS ('k') | chromeos/display/native_display_delegate_x11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/display/native_display_delegate.h
diff --git a/chromeos/display/native_display_delegate.h b/chromeos/display/native_display_delegate.h
deleted file mode 100644
index c59505633f910d0b5697fb39774e7af70f23ac87..0000000000000000000000000000000000000000
--- a/chromeos/display/native_display_delegate.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// 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 CHROMEOS_DISPLAY_NATIVE_DISPLAY_DELEGATE_H_
-#define CHROMEOS_DISPLAY_NATIVE_DISPLAY_DELEGATE_H_
-
-#include "chromeos/display/output_configurator.h"
-#include "ui/display/display_constants.h"
-
-namespace chromeos {
-
-class NativeDisplayObserver;
-
-// Interface for classes that perform display configuration actions on behalf
-// of OutputConfigurator.
-// TODO(dnicoara) This interface will eventually be platform independent,
-// however it first requires refactoring the datatypes: crbug.com/333413
-class NativeDisplayDelegate {
- public:
- virtual ~NativeDisplayDelegate() {}
-
- // Initializes the XRandR extension, saving the base event ID to |event_base|.
- virtual void Initialize() = 0;
-
- // Grabs the X server and refreshes XRandR-related resources. While
- // the server is grabbed, other clients are blocked. Must be balanced
- // by a call to UngrabServer().
- virtual void GrabServer() = 0;
-
- // Ungrabs the server and frees XRandR-related resources.
- virtual void UngrabServer() = 0;
-
- // Flushes all pending requests and waits for replies.
- virtual void SyncWithServer() = 0;
-
- // Sets the window's background color to |color_argb|.
- virtual void SetBackgroundColor(uint32 color_argb) = 0;
-
- // Enables DPMS and forces it to the "on" state.
- virtual void ForceDPMSOn() = 0;
-
- // Returns information about the current outputs. This method may block for
- // 60 milliseconds or more. The returned outputs are not fully initialized;
- // the rest of the work happens in
- // OutputConfigurator::UpdateCachedOutputs().
- virtual std::vector<OutputConfigurator::OutputSnapshot> GetOutputs() = 0;
-
- // Adds |mode| to |output|.
- virtual void AddMode(const OutputConfigurator::OutputSnapshot& output,
- RRMode mode) = 0;
-
- // Calls XRRSetCrtcConfig() with the given options but some of our default
- // output count and rotation arguments. Returns true on success.
- virtual bool Configure(const OutputConfigurator::OutputSnapshot& output,
- RRMode mode,
- int x,
- int y) = 0;
-
- // Called to set the frame buffer (underlying XRR "screen") size. Has
- // a side-effect of disabling all CRTCs.
- virtual void CreateFrameBuffer(
- int width,
- int height,
- const std::vector<OutputConfigurator::OutputSnapshot>& outputs) = 0;
-
- // Gets HDCP state of output.
- virtual bool GetHDCPState(const OutputConfigurator::OutputSnapshot& output,
- ui::HDCPState* state) = 0;
-
- // Sets HDCP state of output.
- virtual bool SetHDCPState(const OutputConfigurator::OutputSnapshot& output,
- ui::HDCPState state) = 0;
-
- virtual void AddObserver(NativeDisplayObserver* observer) = 0;
-
- virtual void RemoveObserver(NativeDisplayObserver* observer) = 0;
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DISPLAY_NATIVE_DISPLAY_DELEGATE_H_
« no previous file with comments | « chromeos/display/OWNERS ('k') | chromeos/display/native_display_delegate_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698