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

Side by Side Diff: Source/core/html/HTMLInputElement.h

Issue 408883003: Remove shouldUseInputMethod (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: V2 Created 6 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 bool hasImageLoader() const { return m_imageLoader; } 262 bool hasImageLoader() const { return m_imageLoader; }
263 HTMLImageLoader* imageLoader(); 263 HTMLImageLoader* imageLoader();
264 264
265 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); 265 bool setupDateTimeChooserParameters(DateTimeChooserParameters&);
266 266
267 bool supportsInputModeAttribute() const; 267 bool supportsInputModeAttribute() const;
268 268
269 void setShouldRevealPassword(bool value); 269 void setShouldRevealPassword(bool value);
270 bool shouldRevealPassword() const { return m_shouldRevealPassword; } 270 bool shouldRevealPassword() const { return m_shouldRevealPassword; }
271 271
272 bool shouldUseInputMethod();
adamk 2014/07/22 01:10:07 Can't this method (and all the input type methods
273
272 protected: 274 protected:
273 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); 275 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser);
274 276
275 virtual void defaultEventHandler(Event*) OVERRIDE; 277 virtual void defaultEventHandler(Event*) OVERRIDE;
276 278
277 private: 279 private:
278 enum AutoCompleteSetting { Uninitialized, On, Off }; 280 enum AutoCompleteSetting { Uninitialized, On, Off };
279 281
280 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL; 282 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL;
281 virtual void willAddFirstAuthorShadowRoot() OVERRIDE FINAL; 283 virtual void willAddFirstAuthorShadowRoot() OVERRIDE FINAL;
282 284
283 virtual void willChangeForm() OVERRIDE FINAL; 285 virtual void willChangeForm() OVERRIDE FINAL;
284 virtual void didChangeForm() OVERRIDE FINAL; 286 virtual void didChangeForm() OVERRIDE FINAL;
285 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 287 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
286 virtual void removedFrom(ContainerNode*) OVERRIDE FINAL; 288 virtual void removedFrom(ContainerNode*) OVERRIDE FINAL;
287 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE FINAL; 289 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE FINAL;
288 virtual void removeAllEventListeners() OVERRIDE FINAL; 290 virtual void removeAllEventListeners() OVERRIDE FINAL;
289 291
290 virtual bool hasCustomFocusLogic() const OVERRIDE FINAL; 292 virtual bool hasCustomFocusLogic() const OVERRIDE FINAL;
291 virtual bool isKeyboardFocusable() const OVERRIDE FINAL; 293 virtual bool isKeyboardFocusable() const OVERRIDE FINAL;
292 virtual bool shouldShowFocusRingOnMouseFocus() const OVERRIDE FINAL; 294 virtual bool shouldShowFocusRingOnMouseFocus() const OVERRIDE FINAL;
293 virtual bool isEnumeratable() const OVERRIDE FINAL; 295 virtual bool isEnumeratable() const OVERRIDE FINAL;
294 virtual bool isInteractiveContent() const OVERRIDE FINAL; 296 virtual bool isInteractiveContent() const OVERRIDE FINAL;
295 virtual bool supportLabels() const OVERRIDE FINAL; 297 virtual bool supportLabels() const OVERRIDE FINAL;
296 virtual bool shouldUseInputMethod() OVERRIDE FINAL;
297 298
298 virtual bool isTextFormControl() const OVERRIDE FINAL { return isTextField() ; } 299 virtual bool isTextFormControl() const OVERRIDE FINAL { return isTextField() ; }
299 300
300 virtual bool canTriggerImplicitSubmission() const OVERRIDE FINAL { return is TextField(); } 301 virtual bool canTriggerImplicitSubmission() const OVERRIDE FINAL { return is TextField(); }
301 302
302 virtual const AtomicString& formControlType() const OVERRIDE FINAL; 303 virtual const AtomicString& formControlType() const OVERRIDE FINAL;
303 304
304 virtual bool shouldSaveAndRestoreFormControlState() const OVERRIDE FINAL; 305 virtual bool shouldSaveAndRestoreFormControlState() const OVERRIDE FINAL;
305 virtual FormControlState saveFormControlState() const OVERRIDE FINAL; 306 virtual FormControlState saveFormControlState() const OVERRIDE FINAL;
306 virtual void restoreFormControlState(const FormControlState&) OVERRIDE FINAL ; 307 virtual void restoreFormControlState(const FormControlState&) OVERRIDE FINAL ;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 RefPtrWillBeMember<InputTypeView> m_inputTypeView; 394 RefPtrWillBeMember<InputTypeView> m_inputTypeView;
394 // The ImageLoader must be owned by this element because the loader code ass umes 395 // The ImageLoader must be owned by this element because the loader code ass umes
395 // that it lives as long as its owning element lives. If we move the loader into 396 // that it lives as long as its owning element lives. If we move the loader into
396 // the ImageInput object we may delete the loader while this element lives o n. 397 // the ImageInput object we may delete the loader while this element lives o n.
397 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 398 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
398 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r; 399 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r;
399 }; 400 };
400 401
401 } //namespace 402 } //namespace
402 #endif 403 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698