OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 library keyboard_mojom; | 5 library keyboard_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 const int _KeyboardClient_commitTextName = 2; | 1478 const int _KeyboardClient_commitTextName = 2; |
1479 const int _KeyboardClient_deleteSurroundingTextName = 3; | 1479 const int _KeyboardClient_deleteSurroundingTextName = 3; |
1480 const int _KeyboardClient_setComposingRegionName = 4; | 1480 const int _KeyboardClient_setComposingRegionName = 4; |
1481 const int _KeyboardClient_setComposingTextName = 5; | 1481 const int _KeyboardClient_setComposingTextName = 5; |
1482 const int _KeyboardClient_setSelectionName = 6; | 1482 const int _KeyboardClient_setSelectionName = 6; |
1483 const int _KeyboardClient_submitName = 7; | 1483 const int _KeyboardClient_submitName = 7; |
1484 | 1484 |
1485 | 1485 |
1486 | 1486 |
1487 class _KeyboardClientServiceDescription implements service_describer.ServiceDesc
ription { | 1487 class _KeyboardClientServiceDescription implements service_describer.ServiceDesc
ription { |
1488 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1488 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1489 responseFactory(null); |
1489 | 1490 |
1490 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1491 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1492 responseFactory(null); |
1491 | 1493 |
1492 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1494 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1495 responseFactory(null); |
1493 } | 1496 } |
1494 | 1497 |
1495 abstract class KeyboardClient { | 1498 abstract class KeyboardClient { |
1496 static const String serviceName = null; | 1499 static const String serviceName = null; |
1497 void commitCompletion(CompletionData completion); | 1500 void commitCompletion(CompletionData completion); |
1498 void commitCorrection(CorrectionData correction); | 1501 void commitCorrection(CorrectionData correction); |
1499 void commitText(String text, int newCursorPosition); | 1502 void commitText(String text, int newCursorPosition); |
1500 void deleteSurroundingText(int beforeLength, int afterLength); | 1503 void deleteSurroundingText(int beforeLength, int afterLength); |
1501 void setComposingRegion(int start, int end); | 1504 void setComposingRegion(int start, int end); |
1502 void setComposingText(String text, int newCursorPosition); | 1505 void setComposingText(String text, int newCursorPosition); |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1763 _impl = d; | 1766 _impl = d; |
1764 } | 1767 } |
1765 | 1768 |
1766 String toString() { | 1769 String toString() { |
1767 var superString = super.toString(); | 1770 var superString = super.toString(); |
1768 return "KeyboardClientStub($superString)"; | 1771 return "KeyboardClientStub($superString)"; |
1769 } | 1772 } |
1770 | 1773 |
1771 int get version => 0; | 1774 int get version => 0; |
1772 | 1775 |
1773 service_describer.ServiceDescription get serviceDescription => | 1776 static service_describer.ServiceDescription get serviceDescription => |
1774 new _KeyboardClientServiceDescription(); | 1777 new _KeyboardClientServiceDescription(); |
1775 } | 1778 } |
1776 | 1779 |
1777 const int _KeyboardService_showName = 0; | 1780 const int _KeyboardService_showName = 0; |
1778 const int _KeyboardService_showByRequestName = 1; | 1781 const int _KeyboardService_showByRequestName = 1; |
1779 const int _KeyboardService_hideName = 2; | 1782 const int _KeyboardService_hideName = 2; |
1780 const int _KeyboardService_setTextName = 3; | 1783 const int _KeyboardService_setTextName = 3; |
1781 const int _KeyboardService_setSelectionName = 4; | 1784 const int _KeyboardService_setSelectionName = 4; |
1782 | 1785 |
1783 | 1786 |
1784 | 1787 |
1785 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes
cription { | 1788 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes
cription { |
1786 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1789 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1790 responseFactory(null); |
1787 | 1791 |
1788 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1792 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1793 responseFactory(null); |
1789 | 1794 |
1790 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1795 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1796 responseFactory(null); |
1791 } | 1797 } |
1792 | 1798 |
1793 abstract class KeyboardService { | 1799 abstract class KeyboardService { |
1794 static const String serviceName = "keyboard::KeyboardService"; | 1800 static const String serviceName = "keyboard::KeyboardService"; |
1795 void show(Object client, KeyboardType type); | 1801 void show(Object client, KeyboardType type); |
1796 void showByRequest(); | 1802 void showByRequest(); |
1797 void hide(); | 1803 void hide(); |
1798 void setText(String text); | 1804 void setText(String text); |
1799 void setSelection(int start, int end); | 1805 void setSelection(int start, int end); |
1800 } | 1806 } |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2011 _impl = d; | 2017 _impl = d; |
2012 } | 2018 } |
2013 | 2019 |
2014 String toString() { | 2020 String toString() { |
2015 var superString = super.toString(); | 2021 var superString = super.toString(); |
2016 return "KeyboardServiceStub($superString)"; | 2022 return "KeyboardServiceStub($superString)"; |
2017 } | 2023 } |
2018 | 2024 |
2019 int get version => 0; | 2025 int get version => 0; |
2020 | 2026 |
2021 service_describer.ServiceDescription get serviceDescription => | 2027 static service_describer.ServiceDescription get serviceDescription => |
2022 new _KeyboardServiceServiceDescription(); | 2028 new _KeyboardServiceServiceDescription(); |
2023 } | 2029 } |
2024 | 2030 |
2025 const int _KeyboardServiceFactory_createKeyboardServiceName = 0; | 2031 const int _KeyboardServiceFactory_createKeyboardServiceName = 0; |
2026 | 2032 |
2027 | 2033 |
2028 | 2034 |
2029 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser
viceDescription { | 2035 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser
viceDescription { |
2030 dynamic getTopLevelInterface([Function responseFactory]) => null; | 2036 dynamic getTopLevelInterface([Function responseFactory]) => |
| 2037 responseFactory(null); |
2031 | 2038 |
2032 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 2039 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 2040 responseFactory(null); |
2033 | 2041 |
2034 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 2042 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 2043 responseFactory(null); |
2035 } | 2044 } |
2036 | 2045 |
2037 abstract class KeyboardServiceFactory { | 2046 abstract class KeyboardServiceFactory { |
2038 static const String serviceName = "keyboard::KeyboardServiceFactory"; | 2047 static const String serviceName = "keyboard::KeyboardServiceFactory"; |
2039 void createKeyboardService(Object keyEventDispatcher, Object serviceRequest); | 2048 void createKeyboardService(Object keyEventDispatcher, Object serviceRequest); |
2040 } | 2049 } |
2041 | 2050 |
2042 | 2051 |
2043 class _KeyboardServiceFactoryProxyImpl extends bindings.Proxy { | 2052 class _KeyboardServiceFactoryProxyImpl extends bindings.Proxy { |
2044 _KeyboardServiceFactoryProxyImpl.fromEndpoint( | 2053 _KeyboardServiceFactoryProxyImpl.fromEndpoint( |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2196 _impl = d; | 2205 _impl = d; |
2197 } | 2206 } |
2198 | 2207 |
2199 String toString() { | 2208 String toString() { |
2200 var superString = super.toString(); | 2209 var superString = super.toString(); |
2201 return "KeyboardServiceFactoryStub($superString)"; | 2210 return "KeyboardServiceFactoryStub($superString)"; |
2202 } | 2211 } |
2203 | 2212 |
2204 int get version => 0; | 2213 int get version => 0; |
2205 | 2214 |
2206 service_describer.ServiceDescription get serviceDescription => | 2215 static service_describer.ServiceDescription get serviceDescription => |
2207 new _KeyboardServiceFactoryServiceDescription(); | 2216 new _KeyboardServiceFactoryServiceDescription(); |
2208 } | 2217 } |
2209 | 2218 |
2210 | 2219 |
2211 | 2220 |
OLD | NEW |