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

Unified Diff: ui/aura/display_util.h

Issue 11363124: Move DisplayManager and DisplayChangeObserverX11 from aura to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix rebase Created 8 years, 1 month 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/aura/display_observer.cc ('k') | ui/aura/display_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/display_util.h
diff --git a/ui/aura/display_util.h b/ui/aura/display_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..4505e98c4bf793df39777f8ae5220ca8bbf5ffe4
--- /dev/null
+++ b/ui/aura/display_util.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 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_AURA_DISPLAY_UTIL_H_
+#define UI_AURA_DISPLAY_UTIL_H_
+
+#include <string>
+
+#include "ui/aura/aura_export.h"
+
+namespace gfx {
+class Display;
+}
+
+namespace aura {
+
+// TODO(oshima): OBSOLETE. Eliminate this flag.
+AURA_EXPORT void SetUseFullscreenHostWindow(bool use_fullscreen_window);
+AURA_EXPORT bool UseFullscreenHostWindow();
+
+// Creates a display from string spec. 100+200-1440x800 creates display
+// whose size is 1440x800 at the location (100, 200) in screen's coordinates.
+// The location can be omitted and be just "1440x800", which creates
+// display at the origin of the screen. An empty string creates
+// the display with default size.
+// The device scale factor can be specified by "*", like "1280x780*2",
+// or will use the value of |gfx::Display::GetForcedDeviceScaleFactor()| if
+// --force-device-scale-factor is specified.
+// static gfx::Display CreateDisplayFromSpec(const std::string& spec);
+AURA_EXPORT gfx::Display CreateDisplayFromSpec(const std::string& str);
+
+} // namespace aura
+
+#endif // UI_AURA_DISPLAY_UTIL_H_
« no previous file with comments | « ui/aura/display_observer.cc ('k') | ui/aura/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698