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

Unified Diff: mojo/examples/keyboard/keys.h

Issue 684543003: Move //mojo/examples to //examples (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « mojo/examples/keyboard/keyboard_view.cc ('k') | mojo/examples/keyboard/keys.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/keyboard/keys.h
diff --git a/mojo/examples/keyboard/keys.h b/mojo/examples/keyboard/keys.h
deleted file mode 100644
index c09f856f3511c0e822fabd14ae934b84153e3c4d..0000000000000000000000000000000000000000
--- a/mojo/examples/keyboard/keys.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2014 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 MOJO_EXAMPLES_KEYBOARD_KEYS_H_
-#define MOJO_EXAMPLES_KEYBOARD_KEYS_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-
-namespace mojo {
-namespace examples {
-
-enum SpecialKey {
- SPECIAL_KEY_SHIFT = -1,
- SPECIAL_KEY_NUMERIC = -2,
- SPECIAL_KEY_ALPHA = -3,
-};
-
-struct Key {
- int keyboard_code() const {
- // Handling of keycodes differs between in windows and others.
-#if defined(OS_WIN)
- return generated_code ? generated_code : display_code;
-#else
- return display_code;
-#endif
- }
-
- // Code used to get the value to display in the UI. This is either a
- // KeyboardCode or a SpecialKey.
- int display_code;
-
- // How much space (as a percentage) the key is to take up.
- float size;
-
- // Any ui::EventFlags that are required to produce the key.
- int event_flags;
-
- // If non-zero KeyboardCode to generate. If 0 use the |display_code|.
- int generated_code;
-};
-
-struct Row {
- float padding;
- const Key* keys;
- size_t num_keys;
-};
-
-// Returns the rows for a qwerty style keyboard. The returned values are owned
-// by this object and should not be deleted.
-std::vector<const Row*> GetQWERTYRows();
-
-// Returns the rows for a numeric keyboard. The returned values are owned
-// by this object and should not be deleted.
-std::vector<const Row*> GetNumericRows();
-
-} // namespace examples
-} // namespace mojo
-
-#endif // MOJO_EXAMPLES_KEYBOARD_KEYS_H_
« no previous file with comments | « mojo/examples/keyboard/keyboard_view.cc ('k') | mojo/examples/keyboard/keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698