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

Unified Diff: ui/aura/root_window_host_linux.cc

Issue 12047111: Set scale/orientation property to aura root window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: ui/aura/root_window_host_linux.cc
diff --git a/ui/aura/root_window_host_linux.cc b/ui/aura/root_window_host_linux.cc
index e3ececade9c853baffd90c200fcbd6bf3bbf3691..49b0d7abc467180792f2cea86b4bea69dc711f93 100644
--- a/ui/aura/root_window_host_linux.cc
+++ b/ui/aura/root_window_host_linux.cc
@@ -834,6 +834,11 @@ void RootWindowHostLinux::PrepareForShutdown() {
base::MessagePumpAuraX11::Current()->RemoveDispatcherForWindow(xwindow_);
}
+void RootWindowHostLinux::SetIntProperty(const std::string& name, int value) {
+ ui::SetIntProperty(
+ xwindow_, name.c_str(), XGetAtomName(xdisplay_, XA_CARDINAL), value);
Daniel Erat 2013/01/30 23:52:46 hmm, don't use XGetAtomName() here; it does a roun
oshima 2013/01/31 00:04:56 Ah, sorry I misunderstood what you were asking. do
+}
+
bool RootWindowHostLinux::DispatchEventForRootWindow(
const base::NativeEvent& event) {
switch (event->type) {

Powered by Google App Engine
This is Rietveld 408576698