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

Unified Diff: ui/events/platform/platform_event_stub.cc

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 4 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 | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/events/platform/platform_event_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/platform/platform_event_stub.cc
diff --git a/ui/events/platform/platform_event_stub.cc b/ui/events/platform/platform_event_stub.cc
deleted file mode 100644
index 66830c5137d594c3827d68f8718ecde260aa4562..0000000000000000000000000000000000000000
--- a/ui/events/platform/platform_event_stub.cc
+++ /dev/null
@@ -1,154 +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.
-
-#include "base/logging.h"
-#include "base/time/time.h"
-#include "build/build_config.h"
-#include "ui/events/event_constants.h"
-#include "ui/events/event_utils.h"
-#include "ui/events/keycodes/keyboard_codes.h"
-#include "ui/gfx/point.h"
-#include "ui/gfx/vector2d.h"
-
-namespace ui {
-
-// Stub implementations of platform-specific methods in events_util.h, built
-// on platforms that currently do not have a complete implementation of events.
-
-void UpdateDeviceList() {
- NOTIMPLEMENTED();
-}
-
-EventType EventTypeFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return ET_UNKNOWN;
-}
-
-int EventFlagsFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0;
-}
-
-base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return base::TimeDelta();
-}
-
-gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return gfx::Point();
-}
-
-gfx::Point EventSystemLocationFromNative(
- const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return gfx::Point();
-}
-
-int EventButtonFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0;
-}
-
-int GetChangedMouseButtonFlagsFromNative(
- const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0;
-}
-
-gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return gfx::Vector2d();
-}
-
-void IncrementTouchIdRefCount(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
-}
-
-void ClearTouchIdIfReleased(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
-}
-
-int GetTouchId(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0;
-}
-
-float GetTouchRadiusX(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0.f;
-}
-
-float GetTouchRadiusY(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0.f;
-}
-
-float GetTouchAngle(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0.f;
-}
-
-float GetTouchForce(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0.f;
-}
-
-bool GetScrollOffsets(const base::NativeEvent& native_event,
- float* x_offset,
- float* y_offset,
- float* x_offset_ordinal,
- float* y_offset_ordinal,
- int* finger_count) {
- NOTIMPLEMENTED();
- return false;
-}
-
-bool GetFlingData(const base::NativeEvent& native_event,
- float* vx,
- float* vy,
- float* vx_ordinal,
- float* vy_ordinal,
- bool* is_cancel) {
- NOTIMPLEMENTED();
- return false;
-}
-
-KeyboardCode KeyboardCodeFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return static_cast<KeyboardCode>(0);
-}
-
-const char* CodeFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return "";
-}
-
-uint32 PlatformKeycodeFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0;
-}
-
-bool IsCharFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return false;
-}
-
-uint32 WindowsKeycodeFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0;
-}
-
-uint16 TextFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0;
-}
-
-uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0;
-}
-
-
-} // namespace ui
« no previous file with comments | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/events/platform/platform_event_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698