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

Unified Diff: ui/wayland/wayland_screen.h

Issue 10009024: Remove WAYLAND port (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 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 | « ui/wayland/wayland_message_pump.cc ('k') | ui/wayland/wayland_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wayland/wayland_screen.h
diff --git a/ui/wayland/wayland_screen.h b/ui/wayland/wayland_screen.h
deleted file mode 100644
index 828762f9ebd7c1d9e179b91bc79e4bbf6e39cea7..0000000000000000000000000000000000000000
--- a/ui/wayland/wayland_screen.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) 2011 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_WAYLAND_WAYLAND_SCREEN_H_
-#define UI_WAYLAND_WAYLAND_SCREEN_H_
-
-#include <stdint.h>
-
-#include <list>
-
-#include "base/basictypes.h"
-#include "ui/gfx/point.h"
-#include "ui/gfx/rect.h"
-
-struct wl_output;
-
-namespace ui {
-
-class WaylandDisplay;
-
-// WaylandScreen objects keep track of the current outputs (screens/monitors)
-// that are available to the application.
-class WaylandScreen {
- public:
- WaylandScreen(WaylandDisplay* display, uint32_t id);
- ~WaylandScreen();
-
- // Returns the active allocation of the screen.
- gfx::Rect GetAllocation() const;
-
- private:
- // Used to store information regarding the available modes for the current
- // screen.
- // - (width, height): is the resolution of the screen
- // - refresh: is the refresh rate of the screen under this mode
- // - flags: contains extra information regarding the mode. The most important
- // is the active mode flag.
- struct Mode {
- int32_t width, height, refresh, flags;
- };
- typedef std::list<Mode> Modes;
-
- // Callback functions that allows the display to initialize the screen's
- // position and available modes.
- static void OutputHandleGeometry(void* data,
- wl_output* output,
- int32_t x,
- int32_t y,
- int32_t physical_width,
- int32_t physical_height,
- int32_t subpixel,
- const char* make,
- const char* model);
-
- static void OutputHandleMode(void* data,
- wl_output* wl_output,
- uint32_t flags,
- int32_t width,
- int32_t height,
- int32_t refresh);
-
- // The Wayland output this object wraps
- wl_output* output_;
- // The display that the output is associated with
- WaylandDisplay* display_;
- // The position of the screen. This is important in multi monitor display
- // since it provides the position of the screen in the virtual screen.
- gfx::Point position_;
-
- // List of supported modes
- Modes modes_;
-
- DISALLOW_COPY_AND_ASSIGN(WaylandScreen);
-};
-
-} // namespace ui
-
-#endif // UI_WAYLAND_WAYLAND_SCREEN_H_
« no previous file with comments | « ui/wayland/wayland_message_pump.cc ('k') | ui/wayland/wayland_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698