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

Unified Diff: ui/base/test/ui_controls_win.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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/base/test/ui_controls_mac.mm ('k') | ui/base/theme_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/test/ui_controls_win.cc
diff --git a/ui/base/test/ui_controls_win.cc b/ui/base/test/ui_controls_win.cc
deleted file mode 100644
index fc3f6ea216a0d05ac76ad95bf1da96b9f923a8f3..0000000000000000000000000000000000000000
--- a/ui/base/test/ui_controls_win.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 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 "ui/base/test/ui_controls.h"
-
-#include "base/callback.h"
-#include "base/message_loop/message_loop.h"
-#include "ui/base/test/ui_controls_internal_win.h"
-#include "ui/gfx/point.h"
-
-namespace ui_controls {
-bool g_ui_controls_enabled = false;
-
-void EnableUIControls() {
- g_ui_controls_enabled = true;
-}
-
-bool SendKeyPress(gfx::NativeWindow window,
- ui::KeyboardCode key,
- bool control,
- bool shift,
- bool alt,
- bool command) {
- CHECK(g_ui_controls_enabled);
- DCHECK(!command); // No command key on Windows
- return internal::SendKeyPressImpl(window, key, control, shift, alt,
- base::Closure());
-}
-
-bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window,
- ui::KeyboardCode key,
- bool control,
- bool shift,
- bool alt,
- bool command,
- const base::Closure& task) {
- CHECK(g_ui_controls_enabled);
- DCHECK(!command); // No command key on Windows
- return internal::SendKeyPressImpl(window, key, control, shift, alt, task);
-}
-
-bool SendMouseMove(long x, long y) {
- CHECK(g_ui_controls_enabled);
- return internal::SendMouseMoveImpl(x, y, base::Closure());
-}
-
-bool SendMouseMoveNotifyWhenDone(long x, long y, const base::Closure& task) {
- CHECK(g_ui_controls_enabled);
- return internal::SendMouseMoveImpl(x, y, task);
-}
-
-bool SendMouseEvents(MouseButton type, int state) {
- CHECK(g_ui_controls_enabled);
- return internal::SendMouseEventsImpl(type, state, base::Closure());
-}
-
-bool SendMouseEventsNotifyWhenDone(MouseButton type, int state,
- const base::Closure& task) {
- CHECK(g_ui_controls_enabled);
- return internal::SendMouseEventsImpl(type, state, task);
-}
-
-bool SendMouseClick(MouseButton type) {
- CHECK(g_ui_controls_enabled);
- return internal::SendMouseEventsImpl(type, UP | DOWN, base::Closure());
-}
-
-void RunClosureAfterAllPendingUIEvents(const base::Closure& closure) {
- // On windows, posting UI events is synchronous so just post the closure.
- base::MessageLoopForUI::current()->PostTask(FROM_HERE, closure);
-}
-
-} // namespace ui_controls
« no previous file with comments | « ui/base/test/ui_controls_mac.mm ('k') | ui/base/theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698