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

Unified Diff: components/html_viewer/blink_text_input_type_converters.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 5 years 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
index 100e4f7d893f20a1519496a04c5dde17d0b4f7e7..959660eb0f6f0da605edca22b2c2b673f96a95ec 100644
--- a/components/html_viewer/blink_text_input_type_converters.cc
+++ b/components/html_viewer/blink_text_input_type_converters.cc
@@ -4,14 +4,15 @@
#include "components/html_viewer/blink_text_input_type_converters.h"
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "base/macros.h"
namespace mojo {
-#define TEXT_INPUT_TYPE_ASSERT(NAME, Name) \
- static_assert(static_cast<int32>(TEXT_INPUT_TYPE_##NAME) == \
- static_cast<int32>(blink::WebTextInputType##Name), \
+#define TEXT_INPUT_TYPE_ASSERT(NAME, Name) \
+ static_assert(static_cast<int32_t>(TEXT_INPUT_TYPE_##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);
@@ -29,9 +30,9 @@ 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>(TEXT_INPUT_FLAG_##NAME) == \
- static_cast<int32>(blink::WebTextInputFlag##Name), \
+#define TEXT_INPUT_FLAG_ASSERT(NAME, Name) \
+ static_assert(static_cast<int32_t>(TEXT_INPUT_FLAG_##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);
« no previous file with comments | « components/html_viewer/blink_settings_impl.cc ('k') | components/html_viewer/blink_url_request_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698