20087 Commits

Author SHA1 Message Date
Hixie
e2454a87fc Add more details to how to debug with gdb.
TBR=eseidel

Review URL: https://codereview.chromium.org/1196223004.
2015-06-22 15:01:13 -07:00
Hixie
6183bdf2b2 Fix mojodb to use the new sky_server API also.
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1199063002.
2015-06-22 14:28:41 -07:00
Hixie
3ed42112b0 Update README.md and HACKING.md and resulting yak shave.
Update sky_server:
 - update its help string to admit that it wants the package path as well.
 - be quiet by default, since it makes the build chatty.
 - have a -v for verbose mode, for people who like it chatty.
 - have a default port of 8000, since that's what everyone used.
 - have a -p option to set the port, for people who don't use the default.
 - remove its mapping for gen/, since a TODO told me to.
 - remove the dependency on the build configuration, since it's no longer used.
 - teach it about .dart files.
 - rename sky_server/README to README.md, for consistency with other READMEs.
Update shelldb to speak the new sky_server protocol.
Update tests/services/iframe-embed-vmc.sky since the sky_server change broke the hack it was using.
Update skyserver.py to speak the new sky_server protocol.
Make webkitpy use SkyServer instead of spawning sky_server itself, since a TODO told me to.
Teach webkitpy about dart files.
Teach test_perf about dart files. (untested)
Teach sky_tool about main.dart, main.sky is deprecated. (untested)

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1200993002.
2015-06-22 13:39:16 -07:00
Hixie
d91c808341 Placeholder for sky/engine/README.md.
TBR=eseidel

Review URL: https://codereview.chromium.org/1198323003.
2015-06-22 13:36:43 -07:00
John McCutchan
e855c0e1bc Add Observatory mojo_shell hearbeat test
Fix HTTP requests

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1191253005.
2015-06-22 13:27:35 -07:00
Eric Seidel
c714cf636a Remove home.sky, update home.dart
TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1204483002.
2015-06-22 13:13:27 -07:00
Collin Jackson
884b4e36dc Add a new Theme widget to control color and text color of apps
R=abarth@chromium.org, abarth, hixie

Review URL: https://codereview.chromium.org/1194743003.
2015-06-22 12:10:30 -07:00
Eric Seidel
8a5bd9b676 Roll versions in preparation for deploying a new SkyDemo.apk
TBR=abarth@chromium.org

Review URL: https://codereview.chromium.org/1197113003.
2015-06-22 11:36:42 -07:00
Viktor Lidholt
e90de2b652 Adds API documentation, improves the API names, and cleans up code.
R=ianh@google.com

Review URL: https://codereview.chromium.org/1201983004.
2015-06-22 10:13:23 -07:00
Adam Barth
0aca63c7d6 Update sky/README.md to refer to Sky Widgets
Previously this README discussed fn.dart.

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1199753002.
2015-06-21 12:22:49 -07:00
Adam Barth
4365f77f90 Add black and white constants to theme's colors.
They're in the Material design color palette. This also adds a file-level
dart doc comment.

BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1190413003.
2015-06-19 22:13:01 -07:00
Hans Muller
8903653453 EditableText underlines the word being edited
Also restored the blue line that appears below
focused Input text.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1194113002.
2015-06-19 16:50:03 -07:00
Hixie
a12d43dc58 Turn on wavy underlines. The waves aren't very pretty yet (they are too short somehow), I'll fix that in a subsequent CL.
I abstracted out the wavy underline code so that it doesn't duplicate the code for horizontal and vertical lines.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1201503003.
2015-06-19 16:11:18 -07:00
Adam Barth
8f20fb6e9a Improve stocks2 performance
We're now 25% faster as scrolling the infinite list than stocks1.

This CL makes cleans up some code to avoid calling layout on all the rows in
the stocks list. Instead, we only layout a row when it first enters the list.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1195113002.
2015-06-19 15:44:37 -07:00
John McCutchan
0043e2abf8 Roll dart forward
BUG=
R=zra@google.com

Review URL: https://codereview.chromium.org/1199483004.
2015-06-19 13:23:29 -07:00
Viktor Lidholt
2c2464bdad Correctly handle touches together with zPosition
Renames hitTest to isPointInside

Refactor sorting of children in nodes

Fixes zPosition in sprites and hides internal methods

Adds scaleX / scaleY properties

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1190393004.
2015-06-19 11:15:58 -07:00
Adam Barth
fe2c731ec2 Add package:sky/mojo/asset_bundle.dart to wrap mojo:asset_bundle
This Dart library exposes a more idiomatic interface to the asset_bundle
service and provides integration with dart:sky.

R=viktorl@google.com

Review URL: https://codereview.chromium.org/1200463002.
2015-06-19 11:01:27 -07:00
Hans Muller
641117c52f Adds TextStyle decoration, decorationColor, decorationStyle
Currently only the decoration property is actually translated to a CSS style.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1174213005.
2015-06-19 10:30:38 -07:00
Adam Barth
bdf6179d0d Send gesture events to SkyView in sky_viewer
Previously we sent gesture events only to the WebView.

R=tonyg@chromium.org

Review URL: https://codereview.chromium.org/1198493003.
2015-06-19 10:14:38 -07:00
Viktor Lidholt
ae8ed6f6c1 Adds a SpriteWidget and simplifies sample game setup
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1197493002.
2015-06-19 09:14:12 -07:00
Adam Barth
1cf8b949ec Start fleshing out the rendering/README.md
Also, give some more visual structure to the dependency declarations.

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1189343002.
2015-06-18 23:28:52 -07:00
Adam Barth
2bd4e5bd81 Remove fn.md
The fn1 framework is deprecated. We don't need docs for it anymore.

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1189323002.
2015-06-18 22:29:04 -07:00
Adam Barth
241cf09f4b Describe didMount and didUnmount in widgets/README.md
TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1189313002.
2015-06-18 22:20:24 -07:00
Hixie
bfab895dcf Make the skyanalyzer check the stocks app during testing.
Also, fix the last warning which I conveniently (yet accidentally) left in to test this.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1190223002.
2015-06-18 17:17:38 -07:00
Hixie
ea10435cec Factor out the analyzer part of shelldb so we can reuse it in tests.
This also introduces a new set_build_dir command to shelldb so you can
set the build directory without starting sky.

R=abarth@chromium.org, abarth, eseidel

Review URL: https://codereview.chromium.org/1193733004.
2015-06-18 16:54:52 -07:00
Collin Jackson
ff1bbd35c5 Widgets should be stateful in order to call setState
R=abarth@chromium.org, abarth

Review URL: https://codereview.chromium.org/1183143012.
2015-06-18 16:36:08 -07:00
Hixie
eb09095bd4 Zero warnings from the analyzer!
Ok, not really zero. Actually 72 if you include warnings from non-sky packages and if you include bogus warnings that can be filtered out.

If you pipe the analyzer's output through the following perl script, though, you get zero warnings on the stock app with this patch:

while (defined($_ = <STDIN>)) {
    s|out/android_Debug/gen/dart-pkg/sky/|sky/sdk/|gos;
    next if m|/dart-pkg/|os; # other packages
    next if m|^\[warning] Missing concrete implementation of 'RenderObject.toString'|os; # https://github.com/dart-lang/sdk/issues/23606
    print;
}

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1182323009.
2015-06-18 16:11:29 -07:00
Collin Jackson
55fbd26e61 fix back button in stocks app by calling super.didMount()
TBR=abarth

Review URL: https://codereview.chromium.org/1189113004.
2015-06-18 16:03:29 -07:00
Collin Jackson
d44f8f2dbc Make back button control drawer in stocks app
Currently you lose your scroll and drawer state when coming back from the settings pane.
I think we should solve this by having the Navigator maintain a Stack and
keeping the StockHome alive underneath it. But this is good enough for a first iteration.

R=abarth@chromium.org, abarth

Review URL: https://codereview.chromium.org/1191153002.
2015-06-18 15:36:04 -07:00
Viktor Lidholt
1422bb82aa Optimizes sprite transformations for box to node
Enabling/disabling of handling multiple pointers
Adds basic touch handling

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1179413009.
2015-06-18 15:29:26 -07:00
Hans Muller
2b126efbc8 StyledText is just a convenient way to specify a
tree of InlineStyle and InlineText elements.
StyledText builds an Inline that renders the tree.

For example this StyledText object:

  new StyledText(["FOO", [boldLargerStyle, [greenStyle "BAR"], "BAZ"] BORF]);

Renders the same way the following HTML would,
assuming that TextStyles boldLargerStyle and
greenStyle were defined.

<style>
div {
  display: inline;
}
</style>
<p>
  <div>
    FOO
    <div style="font-weight:bold; font-size:larger">
      <div style="color:green">
        BAR
      </div>
      BAZ
    </div>
    BORF
  </div>
</p>

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1194693002.
2015-06-18 14:35:11 -07:00
Hixie
e66ecb97ca More files I accidentally deleted instead of moving.
TBR=abarth

Review URL: https://codereview.chromium.org/1192183002.
2015-06-18 13:40:14 -07:00
Hixie
9891fb0e89 Looks like markdown doesn't support links in ASCII-art blocks.
TBR=abarth

Review URL: https://codereview.chromium.org/1185343006.
2015-06-18 13:21:25 -07:00
Hixie
69685d5478 Apparently I didn't so much _move_ the files as _delete_ the files. Let's re-add them.
TBR=abarth

Review URL: https://codereview.chromium.org/1177223007.
2015-06-18 13:13:58 -07:00
Hixie
82019129c1 Teach the analyzer about dart:sky.internals.
This is a short-term fix, the long term fix (see issue 254) involves moving some of these to dart:sky.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1191013004.
2015-06-18 13:10:39 -07:00
Hixie
ee4a7bc925 Rename editing2/ and theme2/ to editing/ and theme/.
Flesh out a README.md file for the SDK.
Make the stocks app test wait for the app to be mounted, to catch some more errors, like typos in the mount callback.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1182053012.
2015-06-18 12:44:10 -07:00
Adam Barth
fd4527dd4a Don't crash if you call document.createText(null)
Fixes #165.

R=jackson@google.com, jackson@chromium.org

Review URL: https://codereview.chromium.org/1196463002.
2015-06-18 12:17:05 -07:00
Adam Barth
f360479e1a Demonstrate that we don't crash on a bogus import
Fixes #167

R=ianh@google.com

Review URL: https://codereview.chromium.org/1193713002.
2015-06-18 12:13:31 -07:00
Matt Perry
30de689ef2 Resurrect painting.sky example as painting.dart.
I use it a lot to test and demo the painting API.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1188823008.
2015-06-18 14:19:57 -04:00
Hixie
8c7e53bce4 Fix the App code to use the new names for AppView.
TBR=abarth

Review URL: https://codereview.chromium.org/1186813009.
2015-06-18 10:48:23 -07:00
Matt Perry
edff56d399 Add a Paint::toString() method to describe our Paint objects.
Add a test for RenderDecoratedBox sets up the Paint object correctly.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1185423003.
2015-06-18 13:47:28 -04:00
John McCutchan
78dd8ad1ac Add host_resolver.mojom and update network_service.mojom
BUG=
R=viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/1187313002.
2015-06-18 10:37:56 -07:00
Ian Fischer
2e42fc9181 Delete old raw .sky examples since they are no longer valid examples.
R=ianh@google.com, abarth@chromium.org

Review URL: https://codereview.chromium.org/1182993003.
2015-06-18 10:34:38 -07:00
Adam Barth
381c19e075 If Color constructor is passed a value > 0xFFFFFFFF, Sky crashes
We now ensure the color is <= 0xFFFFFFFF.

Fixes #245

R=ianh@google.com

Review URL: https://codereview.chromium.org/1179413008.
2015-06-18 10:32:26 -07:00
Adam Barth
7c4662ce2c Re-wire up the back button
I broke this when I merged my AppContainer patch with Collin's back button
patch. This change restores the functionality I broke.

TBR=jackson@chromium.org

Review URL: https://codereview.chromium.org/1182463007.
2015-06-18 09:25:24 -07:00
Adam Barth
d6cbdb4081 Fix data loading in the stocks app
We can't have two copies of |embedder.dart| or |shell.dart| because they take
ownership of some underlying Mojo handles. Instead of duplicating the code,
this CL makes the old locations just export all the symbols from the new
location. I've also done the same with fetch.dart to avoid code duplication.

Finally, I've removed image_cache.dart in the old location because the only
clients already live in the new world and ought to use the new location.

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1179923004.
2015-06-18 09:14:51 -07:00
Adam Barth
2945a27687 Update README.md
Fix syntax errors and add more |const|.
2015-06-18 00:14:13 -07:00
Adam Barth
299186d7f8 Update README.md
Add the new runApp function.
2015-06-18 00:08:46 -07:00
Adam Barth
18ee9f5b65 Add sections on State and Keys to the widget's README.md
TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1185933003.
2015-06-17 23:38:15 -07:00
Hixie
3110059915 Cleanup of SkyBinding, and resultant yak shaving.
Some files are moved by this:
  Copy framework/node.dart into types/ - preparing for framework/'s decomissioning.
  Move app/scheduler.dart into sky/scheduler.dart - "app" doesn't really make sense.

As part of the SkyBinding cleanup, I made the hit-testing less
RenderBox-specific, by having the HitTestEntry.target member be a
HitTestTarget, which is an interface with the handleEvent() function,
which is then implemented by RenderBox. In theory, someone could now
extend hit testing from the RenderBox world into their own tree of
nodes, and take part in all the same dispatch logic automatically.

This involved moving all the hit testing type definitions into a new
sky/hittest.dart file.

Renamed SkyBinding._app to SkyBinding._instance for clarity.

Moved code around in SkyBinding so that related things are together.

Made WidgetSkyBinding use the existing SkyBinding.instance singleton
logic rather than having its own copy.

I also added some stub README.md files that describe dependencies.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1187393002.
2015-06-17 19:54:11 -07:00