OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_ | 5 #ifndef CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_ |
6 #define CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_ | 6 #define CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_ |
7 | 7 |
8 namespace chromeos { | 8 namespace chromeos { |
9 | 9 |
10 namespace ibus { | 10 namespace ibus { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 IBUS_MOUSE_BUTTON_RIGHT = 3U, | 117 IBUS_MOUSE_BUTTON_RIGHT = 3U, |
118 }; | 118 }; |
119 | 119 |
120 namespace config { | 120 namespace config { |
121 const char kServiceName[] = "org.freedesktop.IBus.Config"; | 121 const char kServiceName[] = "org.freedesktop.IBus.Config"; |
122 const char kServicePath[] = "/org/freedesktop/IBus/Config"; | 122 const char kServicePath[] = "/org/freedesktop/IBus/Config"; |
123 const char kServiceInterface[] = "org.freedesktop.IBus.Config"; | 123 const char kServiceInterface[] = "org.freedesktop.IBus.Config"; |
124 const char kSetValueMethod[] = "SetValue"; | 124 const char kSetValueMethod[] = "SetValue"; |
125 } // namespace config | 125 } // namespace config |
126 | 126 |
| 127 // We can't use ui/gfx/rect.h in chromeos/, so we should use ibus::Rect instead. |
| 128 struct Rect { |
| 129 Rect() : x(0), y(0), width(0), height(0) {} |
| 130 Rect(int x, int y, int width, int height) |
| 131 : x(x), |
| 132 y(y), |
| 133 width(width), |
| 134 height(height) {} |
| 135 int x; |
| 136 int y; |
| 137 int width; |
| 138 int height; |
| 139 }; |
| 140 |
127 } // namespace ibus | 141 } // namespace ibus |
128 } // namespace chromeos | 142 } // namespace chromeos |
129 | 143 |
130 #endif // CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_ | 144 #endif // CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_ |
OLD | NEW |