Bug 868124 - Switch to our own copy of PowerManager.h in libui, r=vlad
authorMichael Wu <mwu@mozilla.com>
Thu, 02 May 2013 15:09:06 -0400
changeset 130772 4e3ac5fbf0740de3648c8b9568a87580e8ee80fa
parent 130771 82c443653988c0132c72481cb5958d685d200d4d
child 130773 29e7839931715edf1ea9725038ed08893285802a
push id1579
push userphilringnalda@gmail.com
push dateSat, 04 May 2013 04:38:04 +0000
treeherderfx-team@a56432a42a41 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvlad
bugs868124
milestone23.0a1
Bug 868124 - Switch to our own copy of PowerManager.h in libui, r=vlad
widget/gonk/libui/InputDispatcher.cpp
widget/gonk/libui/PowerManager.h
--- a/widget/gonk/libui/InputDispatcher.cpp
+++ b/widget/gonk/libui/InputDispatcher.cpp
@@ -48,17 +48,17 @@
 // Log debug messages about the app switch latency optimization.
 #define DEBUG_APP_SWITCH 0
 
 // Log debug messages about hover events.
 #define DEBUG_HOVER 0
 
 #include "InputDispatcher.h"
 
-#include <ui/PowerManager.h>
+#include "PowerManager.h"
 
 #include <stddef.h>
 #include <unistd.h>
 #include <errno.h>
 #include <limits.h>
 
 #define INDENT "  "
 #define INDENT2 "    "
new file mode 100644
--- /dev/null
+++ b/widget/gonk/libui/PowerManager.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2010 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _UI_POWER_MANAGER_H
+#define _UI_POWER_MANAGER_H
+
+
+namespace android {
+
+enum {
+    POWER_MANAGER_OTHER_EVENT = 0,
+    POWER_MANAGER_BUTTON_EVENT = 1,
+    POWER_MANAGER_TOUCH_EVENT = 2,
+
+    POWER_MANAGER_LAST_EVENT = POWER_MANAGER_TOUCH_EVENT, // Last valid event code.
+};
+
+} // namespace android
+
+#endif // _UI_POWER_MANAGER_H