Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support android build #3

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

support android build

  • Loading branch information
aydin.kim
aydin.kim committed Aug 7, 2013
commit a2342287ee621a995d5099296f9baa775b016e76
@@ -19,11 +19,15 @@ extern mod cocoa;
pub use linux::Alert;
#[cfg(target_os="macos")]
pub use macos::Alert;
#[cfg(target_os="android")]
pub use android::Alert;

#[cfg(target_os="linux")]
mod linux;
#[cfg(target_os="macos")]
mod macos;
#[cfg(target_os="android")]
mod android;

#[cfg(testalert)]
mod test;
@@ -0,0 +1,34 @@
// Copyright 2013 The Servo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use AlertMethods;

/// An alert.
pub struct Alert;

impl AlertMethods for Alert {
fn new(_: &str) -> Alert {
// TODO
Alert
}

pub fn add_prompt(&mut self) {
// TODO
}

pub fn run(&self) {
// TODO
}

pub fn prompt_value(&self) -> ~str {
// TODO
~""
}
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.