Commit Graph

398 Commits

Author SHA1 Message Date
bors-servo cc52e60442 Auto merge of #181 - faern:upgrade-core-foundation, r=jdm
Upgrade core foundation

This is a PR in a series of PRs originating at https://github.com/servo/core-foundation-rs/pull/132

The plan is to make a breaking change to `core-foundation` and release it as `0.5.0`. But before the merge/publish of `core-foundation` I will prepare a set of PRs making sure the entire dependency graph of Servo is ready for this change and can be switched over to `0.5.0` directly.

TODO before merge:
- [x] Merge `core-graphics` PR and publish.
- [x] Remove the last commit from this PR, so we depend on `core-foundation` from crates.io.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/181)
<!-- Reviewable:end -->
2018-01-26 23:05:55 -06:00
Linus Färnstrand a9be9abd81 Depend on newer core-graphics and bump version 2018-01-12 01:06:21 +01:00
bors-servo cfc17f828d Auto merge of #178 - nox:bump, r=jdm
Update core-graphics to 0.12.1

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/178)
<!-- Reviewable:end -->
2017-11-17 08:30:04 -06:00
Anthony Ramine 8f3c195ac9 Update core-graphics to 0.12.1 2017-11-17 15:26:50 +01:00
bors-servo fb2e6c6ddc Auto merge of #177 - nox:bump, r=KiChjang
Update core-graphics to 0.11

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/177)
<!-- Reviewable:end -->
2017-11-17 03:47:55 -06:00
Anthony Ramine ebb3bebfdb Update core-graphics to 0.11 2017-11-17 10:14:37 +01:00
bors-servo 16cf14c430 Auto merge of #176 - ratake:master, r=jdm
Compile NSValue on macOS only

Because it depends on `NSSize`/`NSPoint`. This fixes the build on iOS.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/176)
<!-- Reviewable:end -->
2017-11-01 07:30:49 -05:00
ratake f37a465990 Compile NSValue on macOS only
Because it depends on NSSize/NSPoint. This fixes the build on iOS.
2017-10-31 21:30:56 -07:00
bors-servo 1d36994574 Auto merge of #175 - ratake:master, r=jdm
Fix build on iOS platform

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/175)
<!-- Reviewable:end -->
2017-10-19 07:50:54 -05:00
ratake 1509438a80 Only expose AppKit and NSGeometry on macOS 2017-10-16 23:46:49 -07:00
ratake cf04b6c8c9 Fix build on aarch64-apple-ios 2017-10-16 21:35:51 -07:00
bors-servo 790dda99ca Auto merge of #174 - lovebug356:patch-1, r=jdm
example: add space between quit and process name

Add a space between "Quit" and the process name in the menu

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/174)
<!-- Reviewable:end -->
2017-10-14 07:37:16 -05:00
Thijs Vermeir f121437465 example: add space between quit and process name
Add a space between "Quit" and the process name in the menu
2017-10-14 12:17:41 +02:00
bors-servo 8512431e82 Auto merge of #173 - Eijebong:bitflags, r=jdm
Update bitflags to 1.0 and bump version

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/173)
<!-- Reviewable:end -->
2017-10-13 12:50:00 -05:00
Bastien Orivel cb8e0ad344 Update bitflags to 1.0 and bump version 2017-10-12 17:56:42 +02:00
bors-servo cb4acbf532 Auto merge of #172 - brennie:brennie/requestUserAttention, r=jdm
Support requesting user attention

This patch adds the `NSRequestUserAttentionType` enum and the
`NSApplication.requestUserAttention_` so applications can request
attention from the user.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/172)
<!-- Reviewable:end -->
2017-10-05 07:10:16 -05:00
Barret Rennie c4c75065c7 Support requesting user attention
This patch adds the `NSRequestUserAttentionType` enum and the
`NSApplication.requestUserAttention_` so applications can request
attention from the user.
2017-10-04 17:52:47 -06:00
bors-servo a4b0b68fa6 Auto merge of #171 - glennw:bump, r=nox
Bump core-graphics dependency and version

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/171)
<!-- Reviewable:end -->
2017-09-20 15:35:15 -05:00
Glenn Watson bc599eb017 Bump core-graphics dependency and version 2017-09-19 14:33:25 -07:00
bors-servo 5b221bba0b Auto merge of #169 - foollbar:master, r=KiChjang
Remove unused imports

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/169)
<!-- Reviewable:end -->
2017-09-15 13:05:15 -05:00
foollbar 28b46b20ad Remove unused imports 2017-09-16 02:41:50 +09:00
bors-servo 1f6ac29ae7 Auto merge of #166 - servo:rustup, r=nox
Update to rustc 1.20.0-nightly (3bfc18a96 2017-06-29)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/166)
<!-- Reviewable:end -->
2017-06-30 07:36:59 -07:00
Simon Sapin 987dd375c9 Update to rustc 1.20.0-nightly (3bfc18a96 2017-06-29) 2017-06-30 16:35:03 +02:00
bors-servo 4d65a12ed1 Auto merge of #163 - Eijebong:bitflags, r=jdm
Update bitflags and bump version

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/163)
<!-- Reviewable:end -->
2017-06-20 17:55:46 -07:00
Bastien Orivel d3d9e3c95f Update bitflags and bump version 2017-06-20 22:25:55 +02:00
bors-servo 5af38a56bc Auto merge of #164 - servo:jdm-patch-1, r=jdm
Make travis compile again.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/164)
<!-- Reviewable:end -->
2017-06-19 16:54:44 -07:00
Josh Matthews 6202d5709d Make travis compile again. 2017-06-19 15:50:00 -04:00
bors-servo 58162a165f Auto merge of #162 - Eijebong:bump_graphics, r=emilio
Allow core-graphics 0.8 and bump version

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/162)
<!-- Reviewable:end -->
2017-06-14 18:25:20 -07:00
Bastien Orivel 437596359a Allow core-graphics 0.8 and bump version 2017-06-15 03:19:42 +02:00
bors-servo 4c63ce7a71 Auto merge of #160 - oluseyi:bitflag-window-masks, r=jdm
Implement NSWindowStyleMask as bitflags

RE https://github.com/servo/cocoa-rs/issues/159

`NSWindowStyleMask`, as an enumeration in Objective-C, degrades to `NSUInteger` and is therefore bitwise-combinable, though it loses type information. Instead of implementing `NSWindowStyleMask` as a packed-data object with a `u64` representational form, we ought to employ bit flags to generate a strong type that remains combinable in the manner Cocoa programmers are accustomed to. Also easier than manually implementing `std::ops::BitOr` for the type.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/160)
<!-- Reviewable:end -->
2017-03-22 11:25:14 -07:00
Oluseyi Sonaiya e773703bb5 Update examples to match new NSWindowStyleMask type. 2017-03-22 14:11:07 -04:00
Oluseyi Sonaiya 135fce2385 Use bitflags from_bits_truncate to ensure value retrieved from msg_send maps to declared fields. Prefer truncate because macOS may use reserved bits for private purposes, or introduce new values in future versions. 2017-03-22 11:35:32 -04:00
Oluseyi Sonaiya 7f9ba0f7d5 Rename NSWindowMask to NSWindowStyleMask to match the Cocoa AppKit type 2017-03-22 11:33:12 -04:00
Oluseyi Sonaiya c964442d55 NSWindowMask, as an enumeration in Objective-C, degrades to NSUInteger and is therefore bitwise-combinable, though it loses type information. Instead of implementing NSWindowMask as a packed-data object with a u64 representational form, we ought to employ bit flags to generate a strong type that remains combinable in the manner Cocoa programmers are accustomed to. Also easier than manually implementing std::ops::BitOr for the type. 2017-03-22 09:59:03 -04:00
bors-servo b351692001 Auto merge of #158 - paulrouget:appearanceNames, r=jdm
Add appearance names

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/158)
<!-- Reviewable:end -->
2017-03-15 06:50:03 -07:00
Paul Rouget 142bf3bbc0 Add appearance names 2017-03-15 13:51:02 +01:00
bors-servo 1b69af69a6 Auto merge of #156 - nox:core-graphics, r=nox
Update core-graphics to 0.7

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/156)
<!-- Reviewable:end -->
2017-02-18 08:00:35 -08:00
Anthony Ramine 4ca8bfb1f7 Update core-graphics to 0.7 2017-02-18 16:59:09 +01:00
bors-servo 2334a7c62d Auto merge of #152 - paulrouget:field_button, r=jdm
Add support for NSTextField and improve NSButton

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/152)
<!-- Reviewable:end -->
2017-02-01 18:18:31 -08:00
bors-servo 13a8fa9da4 Auto merge of #153 - nox:core-graphics, r=jdm
Update core-graphics to 0.6

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/153)
<!-- Reviewable:end -->
2017-02-01 12:33:39 -08:00
Anthony Ramine 96e6484fc2 Update core-graphics to 0.6 2017-02-01 16:24:26 +01:00
Paul Rouget 73455d52ad More NSButton methods 2017-02-01 09:49:16 +01:00
Paul Rouget 128a1ab460 NSTextField support 2017-02-01 09:49:04 +01:00
bors-servo 3d7fc57a8b Auto merge of #151 - servo:version, r=jdm
Update version to account for semver changes.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/151)
<!-- Reviewable:end -->
2017-01-20 08:34:45 -08:00
Josh Matthews 9b7e83091b Update version to account for semver changes. 2017-01-20 10:04:50 -05:00
bors-servo 54e71f0086 Auto merge of #150 - servo:bump-cg, r=glennw
Update core-graphics to 0.5; update minor version.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/150)
<!-- Reviewable:end -->
2017-01-19 06:20:08 -08:00
Josh Matthews d0566aace0 Update core-graphics to 0.5; update minor version. 2017-01-19 09:16:35 -05:00
bors-servo df110542ce Auto merge of #148 - upsuper:legacy-gitignore, r=emilio
Remove legacy items from .gitignore

The items being removed were added in da80902 for temporary files generated by `make`. But the Makefile is later removed in #36, and thus these items are no longer needed.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/148)
<!-- Reviewable:end -->
2016-12-12 01:29:20 -08:00
Xidorn Quan 078eb35d34 Remove legacy items from .gitignore 2016-12-12 20:14:50 +11:00
bors-servo 5b23ee37aa Auto merge of #143 - frewsxcv:rustfmt, r=jdm
Run rustfmt on entire crate.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/143)
<!-- Reviewable:end -->
2016-11-26 13:01:08 -08:00