1543 Commits

Author SHA1 Message Date
Hixie
02045e37a4 [Effen] Move 'flex' out of CSS also. (mark II)
This introduces a new kind of ContentNode similar to Style but which
instead of changing the styles that apply to the node, provides new
settings to apply to the "parentData" structure.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1122413006
2015-05-12 10:40:43 -07:00
Benjamin Lerman
42fc77f4b4 Revert "[Effen] Move 'flex' out of CSS also."
This reverts commit 1a4db2e964de8a2eba7c76c0904027150cc0c387.

This broke the bots.

TBR=github.com@spam.hixie.ch

Review URL: https://codereview.chromium.org/1137153002
2015-05-12 14:25:34 +02:00
Hixie
8873061dff [Effen] Move 'flex' out of CSS also.
This introduces a new kind of ContentNode similar to Style but which
instead of changing the styles that apply to the node, provides new
settings to apply to the "parentData" structure.

If you have better ideas for the class names here let me know.

Note that the layout.dart backend of this is hacky (more so than
before, even); once we have something other than the DOM and CSS to
back it, it'll get rewritten.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1129893006
2015-05-11 16:20:20 -07:00
Hixie
dd1d195482 [Effen] Convert action_bar.dart to using a FlexContainer.
FlexContainer is a (pretend) new layout primitive that implements Flex layout.
It's only pretend because right now it's still just backed by CSS.
This is a step along the way to removing all the CSS from fn.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1128743003
2015-05-11 15:06:23 -07:00
Hixie
bba43773e2 [Effen] Update test for recent fn change.
We dropped Anchor support, and the markup changed a bit (mostly it got debug='' attributes to help debug output).
TBR=eseidel

Review URL: https://codereview.chromium.org/1129883004
2015-05-08 14:05:45 -07:00
Eric Seidel
e7ae9fa30f Merge pull request #149 from maqnouch/patch-1
Fix typos in README.md
2015-05-08 13:10:01 -07:00
Eric Seidel
786792fdfd Merge pull request #152 from domokit/sethladd-patch-1
Update README with explicit step to start the sky tool
2015-05-08 13:09:35 -07:00
Eric Seidel
5b4d3452bc Merge pull request #154 from domokit/sethladd-patch-2
Fix typo in Sky's framework's README
2015-05-08 13:09:18 -07:00
Hixie
e8ead8bbbe [Effen] Port fn.dart from the legacy sky.Node backend to the RenderNode backend, which is currently just a sky.Node-backed shim, but will eventually be the core Sky interface for layout and painting.
- the custom layout class in fn is removed by this patch; a new class
  will be added in a later CL

- the version of layout.dart in this CL is a subset of what we're
  targetting on the long run with
     https://codereview.chromium.org/1093633002

- a couple of lines of dead code are removed in this CL also

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1117143003
2015-05-08 13:06:47 -07:00
Seth Ladd
bf8418349e Fix typo in Sky's framework's README 2015-05-07 18:40:32 -07:00
Seth Ladd
1fb4adac3c Update README with explicit step to start the sky tool 2015-05-07 18:20:59 -07:00
Eric Seidel
77803d3826 Add a note at the top of the SDK README.md to explain how to contribute to the Sky SDK.
I will also disable issues on the sky_sdk repo.

R=abarth@chromium.org, ianh@google.com

Review URL: https://codereview.chromium.org/1135553002
2015-05-07 11:14:31 -07:00
Eric Seidel
6220b1093b Merge pull request #140 from domokit/rename
Rename view-configuration to view_configuration to make analyzer happy.
2015-05-07 11:00:17 -07:00
Colin Blundell
6e8347d042 Dart: Adds mojom pub package.
Creates generate.dart script that installs generated .mojom.dart files into
the mojom pub package.

Updates Sky's deploy_sdk.py script to put mojom.dart files in locations where
they can be consumed by the generate.dart script once the SDK is published and
obtained via "pub get".

This CL is adapted from a patch by zra@google.com; most of the work here is his.

R=iposva@google.com

Review URL: https://codereview.chromium.org/1106383006
2015-05-07 15:23:03 +02:00
John McCutchan
76da439f44 Add Observatory to sky dart_controller
- Bump Dart and Observatory DEPS to 45576 and 45565 respectively.
- Include 'dart:io' in snapshot
- Add 'dart:io' native bindings to sky bindings.
- Initialize 'dart:io' in sky dart_controller.
- Include Observatory and service isolate resources in build.
- Bring up service isolate.
- Start handle watcher isolate from service isolate (hides handle watcher isolate from debugger and Observatory).
- Hook up debugger.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1107803002
2015-05-06 15:36:12 -07:00
AQNOUCH Mohammed
402497b210 Fix typos 2015-05-06 20:55:42 +01:00
James Robinson
04dec88f74 Update from https://crrev.com/328418
This includes the switch to libc++ on android.

Fixes outside of the rolled code:

*) ::TestSuite -> base::TestSuite
*) base::ScopedPtrHashMap's second parameter Value->scoped_ptr<Value>
*) re2 std::tr1 changes from upstream libc++ changes
*) tracked_objects:: api changes in mojo/common/task_tracker*

Review URL: https://codereview.chromium.org/1128733002
2015-05-05 18:12:15 -07:00
James Robinson
209153d192 Fix up strings Sky passes to base/trace_event
String parameters passed to the trace macros in base/trace_event must
either be std::string (which Sky doesn't use very much), pointers to
null terminated C-style strings that live forever (like a string
literal) pointers to C-style strings that are annotated by macro as
needing to be copied. This fixes up a few instances that passed pointers
to temporary strings without the copying annotation or pointers to
non-null-terminated strings so the trace data doesn't have random
garbage memory in it.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1107853003
2015-05-05 17:59:09 -07:00
James Robinson
3507c90d4b Update from https://crrev.com/327068
This rolls in //base, //build and //sandbox/linux and updates other
things to match, in particular:

*) Update build_v8.patch
*) Add junit, mockito and roboelectric to DEPS for android test rules
*) Update DEPS for grit
*) Fix up various GN files for os->target_os rename
*) Fix up a few places that were using //base/float_util to use std::isnan
*) Fix up a few places using ApiCompatibilityUtil to use Android SDK directly

as well as a few miscellaneous fixes.

Many portions based on ncbray's work in
https://codereview.chromium.org/1108173002/

R=ncbray@chromium.org
TBR=ncbray@chromium.org

Review URL: https://codereview.chromium.org/1124763003
2015-05-05 16:31:51 -07:00
yzshen
e3fe2a2fcc Remove some InterfacePtr<> methods which directly deal with message pipe handles.
Users should use the corresponding methods dealing with
InterfacePtrInfo<>.

BUG=None
TEST=None
R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/1118843003
2015-05-04 14:47:01 -07:00
Eric Seidel
d04c87cbbc Rename view-configuration to view_configuration to make analyzer happy.
Analyzer was complaining about '-' not being an allowed character
in dart file names.

R=jamesr@chromium.org
2015-05-04 14:18:19 -07:00
Eric Seidel
db103b53cc Add missing semicolon.
Thanks to the many reports:
https://github.com/domokit/sky_sdk/pull/13
https://github.com/domokit/sky_sdk/pull/8

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1127733002
2015-05-04 13:18:36 -07:00
James Robinson
a3de4df656 Teach the mojo_shell --trace-startup flag to gather data from services
This makes passing --trace-startup to mojo_shell (or MojoShell.apk)
collect and save data from all apps/services that support tracing, not
just the shell itself.

R=viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/1105773002
2015-05-01 11:03:09 -07:00
Mitch Rudominer
741c887e97 Removed errant word "is".
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1105113004
2015-04-30 12:30:57 -07:00
Eric Seidel
3afd5e5a77 Add pubspec.yaml files for each of the examples/ directories
so that pub get will create a packages/ directory for each
and users of packages/sky/sky_tool can run these examples
from sky_sdk as the instructions say to.

TBR=ianh@google.com
https://github.com/domokit/mojo/issues/128

Review URL: https://codereview.chromium.org/1110283002
2015-04-28 16:26:38 -07:00
Eric Seidel
817e2a08df Update SDK README to discuss about:tracing and observatory.
TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1114553004
2015-04-28 12:05:46 -07:00
Eric Seidel
c76bf3bdaf Add missing include in sky_tool
Also fixed missing entry in CHANGELOG.md

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1108393003
2015-04-28 11:34:12 -07:00
Eric Seidel
fc50331d21 Update CHANGELOG with recent changes to Sky's pub package
TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1104093004
2015-04-27 17:01:09 -07:00
Eric Seidel
dbd54f73b0 Add start-tracing and stop-tracing commands to sky_tool
This is just copy-pasted from shelldb but should work.

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1112433003
2015-04-27 16:59:17 -07:00
Eric Seidel
7f55f81432 Add a script to sky pub package to download assets
This is a fork of sky/tools/download_material_design_assets
which does not depend on depot_tools and assumes that its
right next to the assets directory instead of finding it
relative to the mojo root.

R=ianh@google.com

Review URL: https://codereview.chromium.org/1106373002
2015-04-27 16:27:47 -07:00
Eric Seidel
65fdcc97e5 Add a blurb to the SDK README about Mojo IPC and Services.
R=ianh@google.com

Review URL: https://codereview.chromium.org/1111573002
2015-04-27 15:41:59 -07:00
Eric Seidel
4badf359d6 Remove missing word from example command line
TBR=mpcomplete@chromium.org

Review URL: https://codereview.chromium.org/1106343002
2015-04-27 14:36:27 -07:00
Eric Seidel
a108fb12f6 Update sky/sdk/README.md instructions
R=ianh@google.com

Review URL: https://codereview.chromium.org/1107203003
2015-04-27 14:28:45 -07:00
Hixie
8c4d2556e6 [Effen] fix some dart warnings (mostly unused imports)
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1104233003
2015-04-27 10:54:26 -07:00
Hixie
122a5220a1 [Effen] stop using custom layout for now, since it's in flux
TBR=hansmuller

Review URL: https://codereview.chromium.org/1102393002
2015-04-27 09:18:01 -07:00
Hixie
b7427362cd shelldb: Make shelldb analyze also analyze the packages, since that's where most development is actually happening at the moment.
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1101893002
2015-04-27 09:16:50 -07:00
Jim Beveridge
d0439a8ba2 Copy of Issue 1100753003, so I can roll Mojo to Modular.
Add support for extra mojom dirs to deploy_sdk.py

TBR=blundell

Review URL: https://codereview.chromium.org/1102883003
2015-04-24 15:03:47 -07:00
Ojan Vafai
fc1dff4288 Expose minContentWidth/maxContentWidth and a callback for computing them.
This exposes the last hooks needed to implement flexbox layout. For now,
I didn't worry too much about the exact API we're exposing since this will
all change with the upcoming redesign (e.g. https://codereview.chromium.org/1093633002).

minContentWidth == the width if the element were to wrap at every wrapping point (not including border/padding)

maxContentWidth == the width if the element were to only wrap at hard wrapping points (e.g. \n inside a whitespace: pre).

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1101793003
2015-04-24 13:14:41 -07:00
Zachary Anderson
ec37fed8f9 Dart: Put generated .mojom.dart files under mojoms pacakge.
BUG=
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1092793005
2015-04-23 15:23:50 -07:00
Hixie
a2e1ec82f5 [Effen] Tapping on a menu while it's closing should not make it instantly disappear.
This tries to make the menu controller more careful about the state
transitions it goes through, in particular, not firing off animations
while we're already closing (since that used to trigger the "we're
done animating" callback which then closes the menu forcibly).

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1074883005
2015-04-23 13:20:39 -07:00
Benjamin Lerman
cd3929c139 java libraries: Fix warnings in eclipse.
R=ppi@chromium.org

Review URL: https://codereview.chromium.org/1098243003
2015-04-22 13:59:00 +02:00
Dave Moore
9adc226ba7 Fix check for MojoShell.apk
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1097343002
2015-04-21 20:58:18 -07:00
James Robinson
1d79fef476 Teach sky_server not to serve up /.git
Sky doesn't need the git repo of the mojo repo.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1059113004
2015-04-21 16:01:17 -07:00
Eric Seidel
31f36426b2 Fix display of 404s in SkyShell to show error text.
In MojoShell we never hit this path since the NetworkFetcher
aborts earlier on, not knowing what content_handler to use.

R=ojan@chromium.org, ianh@google.com

Review URL: https://codereview.chromium.org/1080993005
2015-04-21 15:38:12 -07:00
Hixie
3338073894 fix 'feeback' typo in stock app in menus
TBR=eseidel

Review URL: https://codereview.chromium.org/1065653009
2015-04-21 14:32:22 -07:00
Hixie
77ffda1e8a [Effen] fix warnings
remove members that are never read
remove imports that are never used

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1099203002
2015-04-21 14:05:28 -07:00
Hixie
830f8bf0f7 [Effen] Prevent scrolling past the bottom of a scrollable list.
- make the ScrollBehavior instance long-lived, rather than recreating
  it each time we update the list contents.
- have OverscrollBehavior track the total height of the contents and
  the height of the scrollable region, so that it can determine when
  to stop scrolling down.
- teach OverscrollBehavior about how to determine when to stop
  scrolling down, and how to bounce when it's too far down.
- replace the 'energy' concept in Particles with a method that sets
  the energy and direction at the same time, instead of assuming that
  the direction is always positive when setting energy.
- make FixedHeightScrollable lists track the number of items in the
  list and have them update their ScrollBehavior regarding this
  information as it changes.
- track how many items are currently showing in the list stock list.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1097373002
2015-04-21 13:20:30 -07:00
Viet-Trung Luu
ab3c30d97e Roll skia to 409fd66a5afcef5f165f7ccec7c3473add231752.
R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/1100833002
2015-04-21 13:15:25 -07:00
Dave Moore
1d74d5f631 Add sensors application to mojo
R=qsr@chromium.org

Review URL: https://codereview.chromium.org/1093033002
2015-04-21 09:56:05 -07:00
Hixie
c1dd855d2d [Effen] Only skip rows we're showing, when skipping past the rows that we've scrolled beyond in the stock list.
Currently, if you then scroll down N items with a filter set, we select which
stock to show by taking the entire list of stocks, skipping the first N, then
filtering the list, then selecting as many stocks as needed to fill the list.

So suppose the list is A, B, Cx, Dx, Ex, F, and the filter is "x", and you've
scrolled down 1 item.

Currently we'd show Cx, Dx, Ex.

Scroll down 1 again.

We still show Cx, Dx, Ex.

What we _should_ show is Dx, Ex if you've scrolled down 1, and just Ex if you've
scrolled two.

This patch fixes this. We now skip rows _after_ filtering. This fixes
the bug whereby if you set a filter then fling the list, we show the
same item over and over as if in a loop.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1057603006
2015-04-20 16:35:49 -07:00