| 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 _cachedServiceDescription; |
| 1774 new _KeyboardClientServiceDescription(); | 1777 static service_describer.ServiceDescription get serviceDescription { |
| 1778 if (_cachedServiceDescription == null) { |
| 1779 _cachedServiceDescription = new _KeyboardClientServiceDescription(); |
| 1780 } |
| 1781 return _cachedServiceDescription; |
| 1782 } |
| 1775 } | 1783 } |
| 1776 | 1784 |
| 1777 const int _KeyboardService_showName = 0; | 1785 const int _KeyboardService_showName = 0; |
| 1778 const int _KeyboardService_showByRequestName = 1; | 1786 const int _KeyboardService_showByRequestName = 1; |
| 1779 const int _KeyboardService_hideName = 2; | 1787 const int _KeyboardService_hideName = 2; |
| 1780 const int _KeyboardService_setTextName = 3; | 1788 const int _KeyboardService_setTextName = 3; |
| 1781 const int _KeyboardService_setSelectionName = 4; | 1789 const int _KeyboardService_setSelectionName = 4; |
| 1782 | 1790 |
| 1783 | 1791 |
| 1784 | 1792 |
| 1785 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes
cription { | 1793 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes
cription { |
| 1786 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1794 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1795 responseFactory(null); |
| 1787 | 1796 |
| 1788 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1797 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1798 responseFactory(null); |
| 1789 | 1799 |
| 1790 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1800 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1801 responseFactory(null); |
| 1791 } | 1802 } |
| 1792 | 1803 |
| 1793 abstract class KeyboardService { | 1804 abstract class KeyboardService { |
| 1794 static const String serviceName = "keyboard::KeyboardService"; | 1805 static const String serviceName = "keyboard::KeyboardService"; |
| 1795 void show(Object client, KeyboardType type); | 1806 void show(Object client, KeyboardType type); |
| 1796 void showByRequest(); | 1807 void showByRequest(); |
| 1797 void hide(); | 1808 void hide(); |
| 1798 void setText(String text); | 1809 void setText(String text); |
| 1799 void setSelection(int start, int end); | 1810 void setSelection(int start, int end); |
| 1800 } | 1811 } |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2011 _impl = d; | 2022 _impl = d; |
| 2012 } | 2023 } |
| 2013 | 2024 |
| 2014 String toString() { | 2025 String toString() { |
| 2015 var superString = super.toString(); | 2026 var superString = super.toString(); |
| 2016 return "KeyboardServiceStub($superString)"; | 2027 return "KeyboardServiceStub($superString)"; |
| 2017 } | 2028 } |
| 2018 | 2029 |
| 2019 int get version => 0; | 2030 int get version => 0; |
| 2020 | 2031 |
| 2021 service_describer.ServiceDescription get serviceDescription => | 2032 static service_describer.ServiceDescription _cachedServiceDescription; |
| 2022 new _KeyboardServiceServiceDescription(); | 2033 static service_describer.ServiceDescription get serviceDescription { |
| 2034 if (_cachedServiceDescription == null) { |
| 2035 _cachedServiceDescription = new _KeyboardServiceServiceDescription(); |
| 2036 } |
| 2037 return _cachedServiceDescription; |
| 2038 } |
| 2023 } | 2039 } |
| 2024 | 2040 |
| 2025 const int _KeyboardServiceFactory_createKeyboardServiceName = 0; | 2041 const int _KeyboardServiceFactory_createKeyboardServiceName = 0; |
| 2026 | 2042 |
| 2027 | 2043 |
| 2028 | 2044 |
| 2029 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser
viceDescription { | 2045 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser
viceDescription { |
| 2030 dynamic getTopLevelInterface([Function responseFactory]) => null; | 2046 dynamic getTopLevelInterface([Function responseFactory]) => |
| 2047 responseFactory(null); |
| 2031 | 2048 |
| 2032 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 2049 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 2050 responseFactory(null); |
| 2033 | 2051 |
| 2034 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 2052 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 2053 responseFactory(null); |
| 2035 } | 2054 } |
| 2036 | 2055 |
| 2037 abstract class KeyboardServiceFactory { | 2056 abstract class KeyboardServiceFactory { |
| 2038 static const String serviceName = "keyboard::KeyboardServiceFactory"; | 2057 static const String serviceName = "keyboard::KeyboardServiceFactory"; |
| 2039 void createKeyboardService(Object keyEventDispatcher, Object serviceRequest); | 2058 void createKeyboardService(Object keyEventDispatcher, Object serviceRequest); |
| 2040 } | 2059 } |
| 2041 | 2060 |
| 2042 | 2061 |
| 2043 class _KeyboardServiceFactoryProxyImpl extends bindings.Proxy { | 2062 class _KeyboardServiceFactoryProxyImpl extends bindings.Proxy { |
| 2044 _KeyboardServiceFactoryProxyImpl.fromEndpoint( | 2063 _KeyboardServiceFactoryProxyImpl.fromEndpoint( |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2196 _impl = d; | 2215 _impl = d; |
| 2197 } | 2216 } |
| 2198 | 2217 |
| 2199 String toString() { | 2218 String toString() { |
| 2200 var superString = super.toString(); | 2219 var superString = super.toString(); |
| 2201 return "KeyboardServiceFactoryStub($superString)"; | 2220 return "KeyboardServiceFactoryStub($superString)"; |
| 2202 } | 2221 } |
| 2203 | 2222 |
| 2204 int get version => 0; | 2223 int get version => 0; |
| 2205 | 2224 |
| 2206 service_describer.ServiceDescription get serviceDescription => | 2225 static service_describer.ServiceDescription _cachedServiceDescription; |
| 2207 new _KeyboardServiceFactoryServiceDescription(); | 2226 static service_describer.ServiceDescription get serviceDescription { |
| 2227 if (_cachedServiceDescription == null) { |
| 2228 _cachedServiceDescription = new _KeyboardServiceFactoryServiceDescription(
); |
| 2229 } |
| 2230 return _cachedServiceDescription; |
| 2231 } |
| 2208 } | 2232 } |
| 2209 | 2233 |
| 2210 | 2234 |
| 2211 | 2235 |
| OLD | NEW |