Home | History | Annotate | Download | only in chrome
      1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "chrome/test/chromedriver/chrome/ui_events.h"
      6 
      7 MouseEvent::MouseEvent(MouseEventType type,
      8                        MouseButton button,
      9                        int x,
     10                        int y,
     11                        int modifiers,
     12                        int click_count)
     13     : type(type),
     14       button(button),
     15       x(x),
     16       y(y),
     17       modifiers(modifiers),
     18       click_count(click_count) {}
     19 
     20 MouseEvent::~MouseEvent() {}
     21 
     22 TouchEvent::TouchEvent(TouchEventType type,
     23                        int x,
     24                        int y)
     25     : type(type),
     26       x(x),
     27       y(y) {}
     28 
     29 TouchEvent::~TouchEvent() {}
     30 
     31 KeyEvent::KeyEvent(KeyEventType type,
     32                    int modifiers,
     33                    const std::string& modified_text,
     34                    const std::string& unmodified_text,
     35                    ui::KeyboardCode key_code)
     36     : type(type),
     37       modifiers(modifiers),
     38       modified_text(modified_text),
     39       unmodified_text(unmodified_text),
     40       key_code(key_code) {}
     41 
     42 KeyEvent::~KeyEvent() {}
     43