summaryrefslogtreecommitdiffstats
path: root/chrome/test/chromedriver/ui_events.cc
blob: 05c5eb5a2e1e13b1fc83b6d47492bbd626962f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/test/chromedriver/ui_events.h"

MouseEvent::MouseEvent(MouseEventType type,
                       MouseButton button,
                       int x,
                       int y,
                       int click_count)
    : type(type), button(button), x(x), y(y), click_count(click_count) {}

MouseEvent::~MouseEvent() {}

KeyEvent::KeyEvent(KeyEventType type,
                   int modifiers,
                   const std::string& modified_text,
                   const std::string& unmodified_text,
                   ui::KeyboardCode key_code)
    : type(type), modifiers(modifiers), modified_text(modified_text),
      unmodified_text(unmodified_text), key_code(key_code) {}

KeyEvent::~KeyEvent() {}