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

Unified Diff: app/event_synthesis_gtk.cc

Issue 3165064: Move the keyboard files from base/ to app/. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: latest merge Created 10 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 | « app/event_synthesis_gtk.h ('k') | app/keyboard_code_conversion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/event_synthesis_gtk.cc
diff --git a/base/event_synthesis_gtk.cc b/app/event_synthesis_gtk.cc
similarity index 91%
rename from base/event_synthesis_gtk.cc
rename to app/event_synthesis_gtk.cc
index 20559099e2ab4e82d36d74f694b6447e01f9dc1b..9163fcc20a66859b6e99be06a285ded10489c029 100644
--- a/base/event_synthesis_gtk.cc
+++ b/app/event_synthesis_gtk.cc
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/event_synthesis_gtk.h"
+#include "app/event_synthesis_gtk.h"
-#include "base/keyboard_code_conversion_gtk.h"
+#include "app/keyboard_code_conversion_gtk.h"
-namespace base {
+namespace app {
GdkEvent* SynthesizeKeyEvent(GdkWindow* window,
bool press, guint gdk_key, guint state) {
@@ -39,7 +39,7 @@ GdkEvent* SynthesizeKeyEvent(GdkWindow* window,
}
void SynthesizeKeyPressEvents(GdkWindow* window,
- base::KeyboardCode key,
+ app::KeyboardCode key,
bool control, bool shift, bool alt,
std::vector<GdkEvent*>* events) {
if (control)
@@ -64,7 +64,7 @@ void SynthesizeKeyPressEvents(GdkWindow* window,
(shift ? GDK_SHIFT_MASK : 0) |
(alt ? GDK_MOD1_MASK : 0);
- guint gdk_key = base::GdkKeyCodeForWindowsKeyCode(key, shift);
+ guint gdk_key = GdkKeyCodeForWindowsKeyCode(key, shift);
events->push_back(SynthesizeKeyEvent(window, true, gdk_key, state));
events->push_back(SynthesizeKeyEvent(window, false, gdk_key, state));
@@ -87,4 +87,4 @@ void SynthesizeKeyPressEvents(GdkWindow* window,
}
}
-} // namespace base
+} // namespace app
« no previous file with comments | « app/event_synthesis_gtk.h ('k') | app/keyboard_code_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698