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

Side by Side Diff: Source/core/html/shadow/TextControlInnerElements.h

Issue 137943002: Update more core classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContext.h ('k') | Source/core/inspector/InspectorAgent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; 114 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
115 virtual void defaultEventHandler(Event*) OVERRIDE; 115 virtual void defaultEventHandler(Event*) OVERRIDE;
116 virtual bool willRespondToMouseClickEvents() OVERRIDE; 116 virtual bool willRespondToMouseClickEvents() OVERRIDE;
117 virtual bool isInputFieldSpeechButtonElement() const OVERRIDE { return true; } 117 virtual bool isInputFieldSpeechButtonElement() const OVERRIDE { return true; }
118 SpeechInputState state() const { return m_state; } 118 SpeechInputState state() const { return m_state; }
119 void startSpeechInput(); 119 void startSpeechInput();
120 void stopSpeechInput(); 120 void stopSpeechInput();
121 121
122 // SpeechInputListener methods. 122 // SpeechInputListener methods.
123 void didCompleteRecording(int); 123 virtual void didCompleteRecording(int) OVERRIDE;
124 void didCompleteRecognition(int); 124 virtual void didCompleteRecognition(int) OVERRIDE;
125 void setRecognitionResult(int, const SpeechInputResultArray&); 125 virtual void setRecognitionResult(int, const SpeechInputResultArray&) OVERRI DE;
126 126
127 private: 127 private:
128 InputFieldSpeechButtonElement(Document&); 128 InputFieldSpeechButtonElement(Document&);
129 SpeechInput* speechInput(); 129 SpeechInput* speechInput();
130 void setState(SpeechInputState state); 130 void setState(SpeechInputState state);
131 virtual bool isMouseFocusable() const OVERRIDE { return false; } 131 virtual bool isMouseFocusable() const OVERRIDE { return false; }
132 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 132 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
133 133
134 bool m_capturing; 134 bool m_capturing;
135 SpeechInputState m_state; 135 SpeechInputState m_state;
136 int m_listenerId; 136 int m_listenerId;
137 SpeechInputResultArray m_results; 137 SpeechInputResultArray m_results;
138 }; 138 };
139 139
140 DEFINE_TYPE_CASTS(InputFieldSpeechButtonElement, Element, element, element->isIn putFieldSpeechButtonElement(), element.isInputFieldSpeechButtonElement()); 140 DEFINE_TYPE_CASTS(InputFieldSpeechButtonElement, Element, element, element->isIn putFieldSpeechButtonElement(), element.isInputFieldSpeechButtonElement());
141 141
142 #endif // ENABLE(INPUT_SPEECH) 142 #endif // ENABLE(INPUT_SPEECH)
143 143
144 } // namespace 144 } // namespace
145 145
146 #endif 146 #endif
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContext.h ('k') | Source/core/inspector/InspectorAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698