Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4772)

Unified Diff: chrome/test/chromedriver/ui_events.h

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/stub_web_view.cc ('k') | chrome/test/chromedriver/ui_events.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/ui_events.h
diff --git a/chrome/test/chromedriver/ui_events.h b/chrome/test/chromedriver/ui_events.h
deleted file mode 100644
index 99e5cb144959facd7b905f01dce9445b9942ae40..0000000000000000000000000000000000000000
--- a/chrome/test/chromedriver/ui_events.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// 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.
-
-#ifndef CHROME_TEST_CHROMEDRIVER_UI_EVENTS_H_
-#define CHROME_TEST_CHROMEDRIVER_UI_EVENTS_H_
-
-#include <string>
-
-#include "ui/base/keycodes/keyboard_codes.h"
-
-// Specifies the type of the mouse event.
-enum MouseEventType {
- kPressedMouseEventType = 0,
- kReleasedMouseEventType,
- kMovedMouseEventType
-};
-
-// Specifies the mouse buttons.
-enum MouseButton {
- kLeftMouseButton = 0,
- kMiddleMouseButton,
- kRightMouseButton,
- kNoneMouseButton
-};
-
-struct MouseEvent {
- MouseEvent(MouseEventType type,
- MouseButton button,
- int x,
- int y,
- int click_count);
- ~MouseEvent();
-
- MouseEventType type;
- MouseButton button;
- int x;
- int y;
- // |click_count| should not be negative.
- int click_count;
-};
-
-// Specifies the type of the keyboard event.
-enum KeyEventType {
- kKeyDownEventType = 0,
- kKeyUpEventType,
- kRawKeyDownEventType,
- kCharEventType
-};
-
-// Specifies modifier keys as stated in
-// third_party/WebKit/Source/WebCore/inspector/Inspector.json.
-// Notice: |kNumLockKeyModifierMask| is for usage in the key_converter.cc
-// and keycode_text_conversion_x.cc only, not for inspector.
-enum KeyModifierMask {
- kAltKeyModifierMask = 1 << 0,
- kControlKeyModifierMask = 1 << 1,
- kMetaKeyModifierMask = 1 << 2,
- kShiftKeyModifierMask = 1 << 3,
- kNumLockKeyModifierMask = 1 << 4
-};
-
-struct KeyEvent {
- KeyEvent(KeyEventType type,
- int modifiers,
- const std::string& modified_text,
- const std::string& unmodified_text,
- ui::KeyboardCode key_code);
- ~KeyEvent();
-
- KeyEventType type;
- int modifiers;
- std::string modified_text;
- std::string unmodified_text;
- ui::KeyboardCode key_code;
-};
-
-#endif // CHROME_TEST_CHROMEDRIVER_UI_EVENTS_H_
« no previous file with comments | « chrome/test/chromedriver/stub_web_view.cc ('k') | chrome/test/chromedriver/ui_events.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698