Merge pull request #2666 from mbrubeck/pinch

Separate "desktop" and "mobile" zoom calculations.
This commit is contained in:
Lars Bergstrom 2014-06-21 08:06:26 -05:00
commit 6c150724f4
13 changed files with 149 additions and 66 deletions

View file

@ -10,17 +10,16 @@ use dom::bindings::trace::Traceable;
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::eventtarget::EventTarget;
use dom::window::Window;
use servo_msg::constellation_msg::WindowSizeData;
use servo_util::str::DOMString;
use servo_util::geometry::PagePx;
use std::cell::{Cell, RefCell};
use geom::point::Point2D;
use geom::size::TypedSize2D;
use time;
pub enum Event_ {
ResizeEvent(TypedSize2D<PagePx, f32>),
ResizeEvent(WindowSizeData),
ReflowEvent,
ClickEvent(uint, Point2D<f32>),
MouseDownEvent(uint, Point2D<f32>),