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

Side by Side Diff: runtime/bin/filter_patch.dart

Issue 2230383003: Implement @patch annotation for patch class members (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: wip Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « runtime/bin/file_system_entity_patch.dart ('k') | runtime/bin/io_service_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 5
6 class _FilterImpl extends NativeFieldWrapperClass1 implements _Filter { 6 class _FilterImpl extends NativeFieldWrapperClass1 implements _Filter {
7 void process(List<int> data, int start, int end) native "Filter_Process"; 7 void process(List<int> data, int start, int end) native "Filter_Process";
8 8
9 List<int> processed({bool flush: true, bool end: false}) 9 List<int> processed({bool flush: true, bool end: false})
10 native "Filter_Processed"; 10 native "Filter_Processed";
(...skipping 11 matching lines...) Expand all
22 _ZLibDeflateFilter(bool gzip, int level, int windowBits, int memLevel, 22 _ZLibDeflateFilter(bool gzip, int level, int windowBits, int memLevel,
23 int strategy, List<int> dictionary, bool raw) { 23 int strategy, List<int> dictionary, bool raw) {
24 _init(gzip, level, windowBits, memLevel, strategy, dictionary, raw); 24 _init(gzip, level, windowBits, memLevel, strategy, dictionary, raw);
25 } 25 }
26 void _init(bool gzip, int level, int windowBits, int memLevel, 26 void _init(bool gzip, int level, int windowBits, int memLevel,
27 int strategy, List<int> dictionary, bool raw) 27 int strategy, List<int> dictionary, bool raw)
28 native "Filter_CreateZLibDeflate"; 28 native "Filter_CreateZLibDeflate";
29 } 29 }
30 30
31 @patch class _Filter { 31 @patch class _Filter {
32 /* @patch */ static _Filter _newZLibDeflateFilter(bool gzip, int level, 32 @patch static _Filter _newZLibDeflateFilter(bool gzip, int level,
33 int windowBits, int memLevel , 33 int windowBits, int memLevel ,
34 int strategy, 34 int strategy,
35 List<int> dictionary, 35 List<int> dictionary,
36 bool raw) => 36 bool raw) =>
37 new _ZLibDeflateFilter(gzip, level, windowBits, memLevel, strategy, 37 new _ZLibDeflateFilter(gzip, level, windowBits, memLevel, strategy,
38 dictionary, raw); 38 dictionary, raw);
39 /* @patch */ static _Filter _newZLibInflateFilter(int windowBits, 39 @patch static _Filter _newZLibInflateFilter(int windowBits,
40 List<int> dictionary, 40 List<int> dictionary,
41 bool raw) => 41 bool raw) =>
42 new _ZLibInflateFilter(windowBits, dictionary, raw); 42 new _ZLibInflateFilter(windowBits, dictionary, raw);
43 } 43 }
OLDNEW
« no previous file with comments | « runtime/bin/file_system_entity_patch.dart ('k') | runtime/bin/io_service_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698