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

Unified Diff: components/html_viewer/blink_text_input_type_converters.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/ax_provider_apptest.cc ('k') | components/html_viewer/document_resource_waiter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 959660eb0f6f0da605edca22b2c2b673f96a95ec..26bd20b721f55200f3ad8ddb5de9eb6ee8399bc3 100644
--- a/components/html_viewer/blink_text_input_type_converters.cc
+++ b/components/html_viewer/blink_text_input_type_converters.cc
@@ -11,7 +11,7 @@
namespace mojo {
#define TEXT_INPUT_TYPE_ASSERT(NAME, Name) \
- static_assert(static_cast<int32_t>(TEXT_INPUT_TYPE_##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);
@@ -31,7 +31,7 @@ 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>(TEXT_INPUT_FLAG_##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);
« no previous file with comments | « components/html_viewer/ax_provider_apptest.cc ('k') | components/html_viewer/document_resource_waiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698