From 814ca68c728146aebf2b7d4a161755afc6fdb325 Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Mon, 15 Dec 2014 09:21:32 -0500 Subject: [PATCH 1/2] Add handle_key stub to gonk port --- ports/gonk/src/window.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/gonk/src/window.rs b/ports/gonk/src/window.rs index 27a21cf308a..d4795f30cee 100644 --- a/ports/gonk/src/window.rs +++ b/ports/gonk/src/window.rs @@ -13,6 +13,7 @@ use layers::platform::surface::NativeGraphicsMetadata; use libc::c_int; use msg::compositor_msg::{Blank, IdlePaintState}; use msg::compositor_msg::{ReadyState, PaintState}; +use msg::constellation_msg::{Key, KeyModifiers}; use msg::constellation_msg::LoadData; use std::cell::Cell; use std::comm::Receiver; @@ -810,6 +811,9 @@ impl WindowMethods for Window { } } + fn handle_key(&self, _: Key, _: KeyModifiers) { + } + fn create_compositor_channel(window: &Option>) -> (Box, Box) { let (sender, receiver) = channel(); From d3c669db45cf1dee66353cdb5e0372c4eb109956 Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Mon, 15 Dec 2014 09:21:47 -0500 Subject: [PATCH 2/2] Update azure to fix gonk build --- ports/gonk/Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock index 7a7032fe50e..2641812ade7 100644 --- a/ports/gonk/Cargo.lock +++ b/ports/gonk/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ [[package]] name = "azure" version = "0.1.0" -source = "git+https://github.com/servo/rust-azure#e8323588209b47a07b67f61812c75dfeb2ad6851" +source = "git+https://github.com/servo/rust-azure#bfae54620eaca34df0ae43d2c1082298131c1aad" dependencies = [ "core_foundation 0.1.0 (git+https://github.com/servo/rust-core-foundation)", "core_graphics 0.1.0 (git+https://github.com/servo/rust-core-graphics)",