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

Unified Diff: components/html_viewer/blink_text_input_type_converters.cc

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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
Index: components/html_viewer/blink_text_input_type_converters.cc
diff --git a/components/html_viewer/blink_text_input_type_converters.cc b/components/html_viewer/blink_text_input_type_converters.cc
deleted file mode 100644
index 26bd20b721f55200f3ad8ddb5de9eb6ee8399bc3..0000000000000000000000000000000000000000
--- a/components/html_viewer/blink_text_input_type_converters.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2015 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.
-
-#include "components/html_viewer/blink_text_input_type_converters.h"
-
-#include <stdint.h>
-
-#include "base/macros.h"
-
-namespace mojo {
-
-#define TEXT_INPUT_TYPE_ASSERT(NAME, Name) \
- static_assert(static_cast<int32_t>(TextInputType::NAME) == \
- static_cast<int32_t>(blink::WebTextInputType##Name), \
- "text_input_type should match")
-TEXT_INPUT_TYPE_ASSERT(NONE, None);
-TEXT_INPUT_TYPE_ASSERT(TEXT, Text);
-TEXT_INPUT_TYPE_ASSERT(PASSWORD, Password);
-TEXT_INPUT_TYPE_ASSERT(SEARCH, Search);
-TEXT_INPUT_TYPE_ASSERT(EMAIL, Email);
-TEXT_INPUT_TYPE_ASSERT(NUMBER, Number);
-TEXT_INPUT_TYPE_ASSERT(TELEPHONE, Telephone);
-TEXT_INPUT_TYPE_ASSERT(URL, URL);
-TEXT_INPUT_TYPE_ASSERT(DATE, Date);
-TEXT_INPUT_TYPE_ASSERT(DATE_TIME, DateTime);
-TEXT_INPUT_TYPE_ASSERT(DATE_TIME_LOCAL, DateTimeLocal);
-TEXT_INPUT_TYPE_ASSERT(MONTH, Month);
-TEXT_INPUT_TYPE_ASSERT(TIME, Time);
-TEXT_INPUT_TYPE_ASSERT(WEEK, Week);
-TEXT_INPUT_TYPE_ASSERT(TEXT_AREA, TextArea);
-
-#define TEXT_INPUT_FLAG_ASSERT(NAME, Name) \
- static_assert(static_cast<int32_t>(TextInputFlag::NAME) == \
- static_cast<int32_t>(blink::WebTextInputFlag##Name), \
- "text_input_flag should match")
-TEXT_INPUT_FLAG_ASSERT(NONE, None);
-TEXT_INPUT_FLAG_ASSERT(AUTOCOMPLETE_ON, AutocompleteOn);
-TEXT_INPUT_FLAG_ASSERT(AUTOCOMPLETE_OFF, AutocompleteOff);
-TEXT_INPUT_FLAG_ASSERT(AUTOCORRECT_ON, AutocorrectOn);
-TEXT_INPUT_FLAG_ASSERT(AUTOCORRECT_OFF, AutocorrectOff);
-TEXT_INPUT_FLAG_ASSERT(SPELLCHECK_ON, SpellcheckOn);
-TEXT_INPUT_FLAG_ASSERT(SPELLCHECK_OFF, SpellcheckOff);
-TEXT_INPUT_FLAG_ASSERT(AUTOCAPITALIZE_NONE, AutocapitalizeNone);
-TEXT_INPUT_FLAG_ASSERT(AUTOCAPITALIZE_CHARACTERS, AutocapitalizeCharacters);
-TEXT_INPUT_FLAG_ASSERT(AUTOCAPITALIZE_WORDS, AutocapitalizeWords);
-TEXT_INPUT_FLAG_ASSERT(AUTOCAPITALIZE_SENTENCES, AutocapitalizeSentences);
-
-TextInputType
-TypeConverter<TextInputType, blink::WebTextInputType>::Convert(
- const blink::WebTextInputType& input) {
- return static_cast<TextInputType>(input);
-}
-
-} // namespace mojo
« no previous file with comments | « components/html_viewer/blink_text_input_type_converters.h ('k') | components/html_viewer/blink_url_request_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698