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

Unified Diff: lib/html/src/KeyboardEvent.dart

Issue 10880068: - Change "static final" to "static const" in the lib/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « lib/html/src/Isolates.dart ('k') | lib/html/src/Measurement.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/KeyboardEvent.dart
===================================================================
--- lib/html/src/KeyboardEvent.dart (revision 11400)
+++ lib/html/src/KeyboardEvent.dart (working copy)
@@ -4,13 +4,13 @@
interface KeyboardEvent extends UIEvent default KeyboardEventWrappingImplementation {
- static final int KEY_LOCATION_LEFT = 0x01;
+ static const int KEY_LOCATION_LEFT = 0x01;
- static final int KEY_LOCATION_NUMPAD = 0x03;
+ static const int KEY_LOCATION_NUMPAD = 0x03;
- static final int KEY_LOCATION_RIGHT = 0x02;
+ static const int KEY_LOCATION_RIGHT = 0x02;
- static final int KEY_LOCATION_STANDARD = 0x00;
+ static const int KEY_LOCATION_STANDARD = 0x00;
KeyboardEvent(String type, Window view, String keyIdentifier, int keyLocation,
[bool canBubble, bool cancelable, bool ctrlKey, bool altKey,
@@ -48,35 +48,35 @@
* of the key, and did not originate from the numeric keypad (or did not
* originate with a virtual key corresponding to the numeric keypad).
*/
- static final int STANDARD = 0;
+ static const int STANDARD = 0;
/**
* The event key is in the left key location.
*/
- static final int LEFT = 1;
+ static const int LEFT = 1;
/**
* The event key is in the right key location.
*/
- static final int RIGHT = 2;
+ static const int RIGHT = 2;
/**
* The event key originated on the numeric keypad or with a virtual key
* corresponding to the numeric keypad.
*/
- static final int NUMPAD = 3;
+ static const int NUMPAD = 3;
/**
* The event key originated on a mobile device, either on a physical
* keypad or a virtual keyboard.
*/
- static final int MOBILE = 4;
+ static const int MOBILE = 4;
/**
* The event key originated on a game controller or a joystick on a mobile
* device.
*/
- static final int JOYSTICK = 5;
+ static const int JOYSTICK = 5;
}
/**
@@ -87,484 +87,484 @@
interface KeyName {
/** The Accept (Commit, OK) key */
- static final String ACCEPT = "Accept";
+ static const String ACCEPT = "Accept";
/** The Add key */
- static final String ADD = "Add";
+ static const String ADD = "Add";
/** The Again key */
- static final String AGAIN = "Again";
+ static const String AGAIN = "Again";
/** The All Candidates key */
- static final String ALL_CANDIDATES = "AllCandidates";
+ static const String ALL_CANDIDATES = "AllCandidates";
/** The Alphanumeric key */
- static final String ALPHANUMERIC = "Alphanumeric";
+ static const String ALPHANUMERIC = "Alphanumeric";
/** The Alt (Menu) key */
- static final String ALT = "Alt";
+ static const String ALT = "Alt";
/** The Alt-Graph key */
- static final String ALT_GRAPH = "AltGraph";
+ static const String ALT_GRAPH = "AltGraph";
/** The Application key */
- static final String APPS = "Apps";
+ static const String APPS = "Apps";
/** The ATTN key */
- static final String ATTN = "Attn";
+ static const String ATTN = "Attn";
/** The Browser Back key */
- static final String BROWSER_BACK = "BrowserBack";
+ static const String BROWSER_BACK = "BrowserBack";
/** The Browser Favorites key */
- static final String BROWSER_FAVORTIES = "BrowserFavorites";
+ static const String BROWSER_FAVORTIES = "BrowserFavorites";
/** The Browser Forward key */
- static final String BROWSER_FORWARD = "BrowserForward";
+ static const String BROWSER_FORWARD = "BrowserForward";
/** The Browser Home key */
- static final String BROWSER_NAME = "BrowserHome";
+ static const String BROWSER_NAME = "BrowserHome";
/** The Browser Refresh key */
- static final String BROWSER_REFRESH = "BrowserRefresh";
+ static const String BROWSER_REFRESH = "BrowserRefresh";
/** The Browser Search key */
- static final String BROWSER_SEARCH = "BrowserSearch";
+ static const String BROWSER_SEARCH = "BrowserSearch";
/** The Browser Stop key */
- static final String BROWSER_STOP = "BrowserStop";
+ static const String BROWSER_STOP = "BrowserStop";
/** The Camera key */
- static final String CAMERA = "Camera";
+ static const String CAMERA = "Camera";
/** The Caps Lock (Capital) key */
- static final String CAPS_LOCK = "CapsLock";
+ static const String CAPS_LOCK = "CapsLock";
/** The Clear key */
- static final String CLEAR = "Clear";
+ static const String CLEAR = "Clear";
/** The Code Input key */
- static final String CODE_INPUT = "CodeInput";
+ static const String CODE_INPUT = "CodeInput";
/** The Compose key */
- static final String COMPOSE = "Compose";
+ static const String COMPOSE = "Compose";
/** The Control (Ctrl) key */
- static final String CONTROL = "Control";
+ static const String CONTROL = "Control";
/** The Crsel key */
- static final String CRSEL = "Crsel";
+ static const String CRSEL = "Crsel";
/** The Convert key */
- static final String CONVERT = "Convert";
+ static const String CONVERT = "Convert";
/** The Copy key */
- static final String COPY = "Copy";
+ static const String COPY = "Copy";
/** The Cut key */
- static final String CUT = "Cut";
+ static const String CUT = "Cut";
/** The Decimal key */
- static final String DECIMAL = "Decimal";
+ static const String DECIMAL = "Decimal";
/** The Divide key */
- static final String DIVIDE = "Divide";
+ static const String DIVIDE = "Divide";
/** The Down Arrow key */
- static final String DOWN = "Down";
+ static const String DOWN = "Down";
/** The diagonal Down-Left Arrow key */
- static final String DOWN_LEFT = "DownLeft";
+ static const String DOWN_LEFT = "DownLeft";
/** The diagonal Down-Right Arrow key */
- static final String DOWN_RIGHT = "DownRight";
+ static const String DOWN_RIGHT = "DownRight";
/** The Eject key */
- static final String EJECT = "Eject";
+ static const String EJECT = "Eject";
/** The End key */
- static final String END = "End";
+ static const String END = "End";
/**
* The Enter key. Note: This key value must also be used for the Return
* (Macintosh numpad) key
*/
- static final String ENTER = "Enter";
+ static const String ENTER = "Enter";
/** The Erase EOF key */
- static final String ERASE_EOF= "EraseEof";
+ static const String ERASE_EOF= "EraseEof";
/** The Execute key */
- static final String EXECUTE = "Execute";
+ static const String EXECUTE = "Execute";
/** The Exsel key */
- static final String EXSEL = "Exsel";
+ static const String EXSEL = "Exsel";
/** The Function switch key */
- static final String FN = "Fn";
+ static const String FN = "Fn";
/** The F1 key */
- static final String F1 = "F1";
+ static const String F1 = "F1";
/** The F2 key */
- static final String F2 = "F2";
+ static const String F2 = "F2";
/** The F3 key */
- static final String F3 = "F3";
+ static const String F3 = "F3";
/** The F4 key */
- static final String F4 = "F4";
+ static const String F4 = "F4";
/** The F5 key */
- static final String F5 = "F5";
+ static const String F5 = "F5";
/** The F6 key */
- static final String F6 = "F6";
+ static const String F6 = "F6";
/** The F7 key */
- static final String F7 = "F7";
+ static const String F7 = "F7";
/** The F8 key */
- static final String F8 = "F8";
+ static const String F8 = "F8";
/** The F9 key */
- static final String F9 = "F9";
+ static const String F9 = "F9";
/** The F10 key */
- static final String F10 = "F10";
+ static const String F10 = "F10";
/** The F11 key */
- static final String F11 = "F11";
+ static const String F11 = "F11";
/** The F12 key */
- static final String F12 = "F12";
+ static const String F12 = "F12";
/** The F13 key */
- static final String F13 = "F13";
+ static const String F13 = "F13";
/** The F14 key */
- static final String F14 = "F14";
+ static const String F14 = "F14";
/** The F15 key */
- static final String F15 = "F15";
+ static const String F15 = "F15";
/** The F16 key */
- static final String F16 = "F16";
+ static const String F16 = "F16";
/** The F17 key */
- static final String F17 = "F17";
+ static const String F17 = "F17";
/** The F18 key */
- static final String F18 = "F18";
+ static const String F18 = "F18";
/** The F19 key */
- static final String F19 = "F19";
+ static const String F19 = "F19";
/** The F20 key */
- static final String F20 = "F20";
+ static const String F20 = "F20";
/** The F21 key */
- static final String F21 = "F21";
+ static const String F21 = "F21";
/** The F22 key */
- static final String F22 = "F22";
+ static const String F22 = "F22";
/** The F23 key */
- static final String F23 = "F23";
+ static const String F23 = "F23";
/** The F24 key */
- static final String F24 = "F24";
+ static const String F24 = "F24";
/** The Final Mode (Final) key used on some asian keyboards */
- static final String FINAL_MODE = "FinalMode";
+ static const String FINAL_MODE = "FinalMode";
/** The Find key */
- static final String FIND = "Find";
+ static const String FIND = "Find";
/** The Full-Width Characters key */
- static final String FULL_WIDTH = "FullWidth";
+ static const String FULL_WIDTH = "FullWidth";
/** The Half-Width Characters key */
- static final String HALF_WIDTH = "HalfWidth";
+ static const String HALF_WIDTH = "HalfWidth";
/** The Hangul (Korean characters) Mode key */
- static final String HANGUL_MODE = "HangulMode";
+ static const String HANGUL_MODE = "HangulMode";
/** The Hanja (Korean characters) Mode key */
- static final String HANJA_MODE = "HanjaMode";
+ static const String HANJA_MODE = "HanjaMode";
/** The Help key */
- static final String HELP = "Help";
+ static const String HELP = "Help";
/** The Hiragana (Japanese Kana characters) key */
- static final String HIRAGANA = "Hiragana";
+ static const String HIRAGANA = "Hiragana";
/** The Home key */
- static final String HOME = "Home";
+ static const String HOME = "Home";
/** The Insert (Ins) key */
- static final String INSERT = "Insert";
+ static const String INSERT = "Insert";
/** The Japanese-Hiragana key */
- static final String JAPANESE_HIRAGANA = "JapaneseHiragana";
+ static const String JAPANESE_HIRAGANA = "JapaneseHiragana";
/** The Japanese-Katakana key */
- static final String JAPANESE_KATAKANA = "JapaneseKatakana";
+ static const String JAPANESE_KATAKANA = "JapaneseKatakana";
/** The Japanese-Romaji key */
- static final String JAPANESE_ROMAJI = "JapaneseRomaji";
+ static const String JAPANESE_ROMAJI = "JapaneseRomaji";
/** The Junja Mode key */
- static final String JUNJA_MODE = "JunjaMode";
+ static const String JUNJA_MODE = "JunjaMode";
/** The Kana Mode (Kana Lock) key */
- static final String KANA_MODE = "KanaMode";
+ static const String KANA_MODE = "KanaMode";
/**
* The Kanji (Japanese name for ideographic characters of Chinese origin)
* Mode key
*/
- static final String KANJI_MODE = "KanjiMode";
+ static const String KANJI_MODE = "KanjiMode";
/** The Katakana (Japanese Kana characters) key */
- static final String KATAKANA = "Katakana";
+ static const String KATAKANA = "Katakana";
/** The Start Application One key */
- static final String LAUNCH_APPLICATION_1 = "LaunchApplication1";
+ static const String LAUNCH_APPLICATION_1 = "LaunchApplication1";
/** The Start Application Two key */
- static final String LAUNCH_APPLICATION_2 = "LaunchApplication2";
+ static const String LAUNCH_APPLICATION_2 = "LaunchApplication2";
/** The Start Mail key */
- static final String LAUNCH_MAIL = "LaunchMail";
+ static const String LAUNCH_MAIL = "LaunchMail";
/** The Left Arrow key */
- static final String LEFT = "Left";
+ static const String LEFT = "Left";
/** The Menu key */
- static final String MENU = "Menu";
+ static const String MENU = "Menu";
/**
* The Meta key. Note: This key value shall be also used for the Apple
* Command key
*/
- static final String META = "Meta";
+ static const String META = "Meta";
/** The Media Next Track key */
- static final String MEDIA_NEXT_TRACK = "MediaNextTrack";
+ static const String MEDIA_NEXT_TRACK = "MediaNextTrack";
/** The Media Play Pause key */
- static final String MEDIA_PAUSE_PLAY = "MediaPlayPause";
+ static const String MEDIA_PAUSE_PLAY = "MediaPlayPause";
/** The Media Previous Track key */
- static final String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack";
+ static const String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack";
/** The Media Stop key */
- static final String MEDIA_STOP = "MediaStop";
+ static const String MEDIA_STOP = "MediaStop";
/** The Mode Change key */
- static final String MODE_CHANGE = "ModeChange";
+ static const String MODE_CHANGE = "ModeChange";
/** The Next Candidate function key */
- static final String NEXT_CANDIDATE = "NextCandidate";
+ static const String NEXT_CANDIDATE = "NextCandidate";
/** The Nonconvert (Don't Convert) key */
- static final String NON_CONVERT = "Nonconvert";
+ static const String NON_CONVERT = "Nonconvert";
/** The Number Lock key */
- static final String NUM_LOCK = "NumLock";
+ static const String NUM_LOCK = "NumLock";
/** The Page Down (Next) key */
- static final String PAGE_DOWN = "PageDown";
+ static const String PAGE_DOWN = "PageDown";
/** The Page Up key */
- static final String PAGE_UP = "PageUp";
+ static const String PAGE_UP = "PageUp";
/** The Paste key */
- static final String PASTE = "Paste";
+ static const String PASTE = "Paste";
/** The Pause key */
- static final String PAUSE = "Pause";
+ static const String PAUSE = "Pause";
/** The Play key */
- static final String PLAY = "Play";
+ static const String PLAY = "Play";
/**
* The Power key. Note: Some devices may not expose this key to the
* operating environment
*/
- static final String POWER = "Power";
+ static const String POWER = "Power";
/** The Previous Candidate function key */
- static final String PREVIOUS_CANDIDATE = "PreviousCandidate";
+ static const String PREVIOUS_CANDIDATE = "PreviousCandidate";
/** The Print Screen (PrintScrn, SnapShot) key */
- static final String PRINT_SCREEN = "PrintScreen";
+ static const String PRINT_SCREEN = "PrintScreen";
/** The Process key */
- static final String PROCESS = "Process";
+ static const String PROCESS = "Process";
/** The Props key */
- static final String PROPS = "Props";
+ static const String PROPS = "Props";
/** The Right Arrow key */
- static final String RIGHT = "Right";
+ static const String RIGHT = "Right";
/** The Roman Characters function key */
- static final String ROMAN_CHARACTERS = "RomanCharacters";
+ static const String ROMAN_CHARACTERS = "RomanCharacters";
/** The Scroll Lock key */
- static final String SCROLL = "Scroll";
+ static const String SCROLL = "Scroll";
/** The Select key */
- static final String SELECT = "Select";
+ static const String SELECT = "Select";
/** The Select Media key */
- static final String SELECT_MEDIA = "SelectMedia";
+ static const String SELECT_MEDIA = "SelectMedia";
/** The Separator key */
- static final String SEPARATOR = "Separator";
+ static const String SEPARATOR = "Separator";
/** The Shift key */
- static final String SHIFT = "Shift";
+ static const String SHIFT = "Shift";
/** The Soft1 key */
- static final String SOFT_1 = "Soft1";
+ static const String SOFT_1 = "Soft1";
/** The Soft2 key */
- static final String SOFT_2 = "Soft2";
+ static const String SOFT_2 = "Soft2";
/** The Soft3 key */
- static final String SOFT_3 = "Soft3";
+ static const String SOFT_3 = "Soft3";
/** The Soft4 key */
- static final String SOFT_4 = "Soft4";
+ static const String SOFT_4 = "Soft4";
/** The Stop key */
- static final String STOP = "Stop";
+ static const String STOP = "Stop";
/** The Subtract key */
- static final String SUBTRACT = "Subtract";
+ static const String SUBTRACT = "Subtract";
/** The Symbol Lock key */
- static final String SYMBOL_LOCK = "SymbolLock";
+ static const String SYMBOL_LOCK = "SymbolLock";
/** The Up Arrow key */
- static final String UP = "Up";
+ static const String UP = "Up";
/** The diagonal Up-Left Arrow key */
- static final String UP_LEFT = "UpLeft";
+ static const String UP_LEFT = "UpLeft";
/** The diagonal Up-Right Arrow key */
- static final String UP_RIGHT = "UpRight";
+ static const String UP_RIGHT = "UpRight";
/** The Undo key */
- static final String UNDO = "Undo";
+ static const String UNDO = "Undo";
/** The Volume Down key */
- static final String VOLUME_DOWN = "VolumeDown";
+ static const String VOLUME_DOWN = "VolumeDown";
/** The Volume Mute key */
- static final String VOLUMN_MUTE = "VolumeMute";
+ static const String VOLUMN_MUTE = "VolumeMute";
/** The Volume Up key */
- static final String VOLUMN_UP = "VolumeUp";
+ static const String VOLUMN_UP = "VolumeUp";
/** The Windows Logo key */
- static final String WIN = "Win";
+ static const String WIN = "Win";
/** The Zoom key */
- static final String ZOOM = "Zoom";
+ static const String ZOOM = "Zoom";
/**
* The Backspace (Back) key. Note: This key value shall be also used for the
* key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key
*/
- static final String BACKSPACE = "Backspace";
+ static const String BACKSPACE = "Backspace";
/** The Horizontal Tabulation (Tab) key */
- static final String TAB = "Tab";
+ static const String TAB = "Tab";
/** The Cancel key */
- static final String CANCEL = "Cancel";
+ static const String CANCEL = "Cancel";
/** The Escape (Esc) key */
- static final String ESC = "Esc";
+ static const String ESC = "Esc";
/** The Space (Spacebar) key: */
- static final String SPACEBAR = "Spacebar";
+ static const String SPACEBAR = "Spacebar";
/**
* The Delete (Del) Key. Note: This key value shall be also used for the key
* labeled 'delete' MacOS keyboards when modified by the 'Fn' key
*/
- static final String DEL = "Del";
+ static const String DEL = "Del";
/** The Combining Grave Accent (Greek Varia, Dead Grave) key */
- static final String DEAD_GRAVE = "DeadGrave";
+ static const String DEAD_GRAVE = "DeadGrave";
/**
* The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute)
* key
*/
- static final String DEAD_EACUTE = "DeadEacute";
+ static const String DEAD_EACUTE = "DeadEacute";
/** The Combining Circumflex Accent (Hat, Dead Circumflex) key */
- static final String DEAD_CIRCUMFLEX = "DeadCircumflex";
+ static const String DEAD_CIRCUMFLEX = "DeadCircumflex";
/** The Combining Tilde (Dead Tilde) key */
- static final String DEAD_TILDE = "DeadTilde";
+ static const String DEAD_TILDE = "DeadTilde";
/** The Combining Macron (Long, Dead Macron) key */
- static final String DEAD_MACRON = "DeadMacron";
+ static const String DEAD_MACRON = "DeadMacron";
/** The Combining Breve (Short, Dead Breve) key */
- static final String DEAD_BREVE = "DeadBreve";
+ static const String DEAD_BREVE = "DeadBreve";
/** The Combining Dot Above (Derivative, Dead Above Dot) key */
- static final String DEAD_ABOVE_DOT = "DeadAboveDot";
+ static const String DEAD_ABOVE_DOT = "DeadAboveDot";
/**
* The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika,
* Double Derivative, Dead Diaeresis) key
*/
- static final String DEAD_UMLAUT = "DeadUmlaut";
+ static const String DEAD_UMLAUT = "DeadUmlaut";
/** The Combining Ring Above (Dead Above Ring) key */
- static final String DEAD_ABOVE_RING = "DeadAboveRing";
+ static const String DEAD_ABOVE_RING = "DeadAboveRing";
/** The Combining Double Acute Accent (Dead Doubleacute) key */
- static final String DEAD_DOUBLEACUTE = "DeadDoubleacute";
+ static const String DEAD_DOUBLEACUTE = "DeadDoubleacute";
/** The Combining Caron (Hacek, V Above, Dead Caron) key */
- static final String DEAD_CARON = "DeadCaron";
+ static const String DEAD_CARON = "DeadCaron";
/** The Combining Cedilla (Dead Cedilla) key */
- static final String DEAD_CEDILLA = "DeadCedilla";
+ static const String DEAD_CEDILLA = "DeadCedilla";
/** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */
- static final String DEAD_OGONEK = "DeadOgonek";
+ static const String DEAD_OGONEK = "DeadOgonek";
/**
* The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota
* Subscript, Dead Iota) key
*/
- static final String DEAD_IOTA = "DeadIota";
+ static const String DEAD_IOTA = "DeadIota";
/**
* The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key
*/
- static final String DEAD_VOICED_SOUND = "DeadVoicedSound";
+ static const String DEAD_VOICED_SOUND = "DeadVoicedSound";
/**
* The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced
* Sound) key
*/
- static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound";
+ static const String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound";
/**
* Key value used when an implementation is unable to identify another key
* value, due to either hardware, platform, or software constraints
*/
- static final String UNIDENTIFIED = "Unidentified";
+ static const String UNIDENTIFIED = "Unidentified";
}
« no previous file with comments | « lib/html/src/Isolates.dart ('k') | lib/html/src/Measurement.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698