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

Unified Diff: chrome/common/instant_type_traits.h

Issue 2086223002: Convert instant search messages to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 2 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: chrome/common/instant_type_traits.h
diff --git a/chrome/common/instant_type_traits.h b/chrome/common/instant_type_traits.h
new file mode 100644
index 0000000000000000000000000000000000000000..264a13769cdb2d3cf8753c0ccabcf5b5398f717e
--- /dev/null
+++ b/chrome/common/instant_type_traits.h
@@ -0,0 +1,57 @@
+// Copyright (c) 2016 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.
+
+// Multiply-included file, no traditional include guard.
+#include "chrome/common/search/instant_types.h"
+#include "chrome/common/search/ntp_logging_events.h"
+#include "components/omnibox/common/omnibox_focus_state.h"
+#include "ipc/ipc_message_macros.h"
+
+IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST)
+
+IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason,
+ OMNIBOX_FOCUS_CHANGE_REASON_LAST)
+
+IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType, NTP_EVENT_TYPE_LAST)
+
+IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingTileSource, NTPLoggingTileSource::LAST)
+
+IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
+ IPC_STRUCT_TRAITS_MEMBER(url)
+ IPC_STRUCT_TRAITS_MEMBER(title)
+ IPC_STRUCT_TRAITS_MEMBER(thumbnail)
+ IPC_STRUCT_TRAITS_MEMBER(favicon)
+ IPC_STRUCT_TRAITS_MEMBER(impression_url)
+ IPC_STRUCT_TRAITS_MEMBER(click_url)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
+ IPC_STRUCT_TRAITS_MEMBER(text)
+ IPC_STRUCT_TRAITS_MEMBER(metadata)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(EmbeddedSearchRequestParams)
+ IPC_STRUCT_TRAITS_MEMBER(search_query)
+ IPC_STRUCT_TRAITS_MEMBER(original_query)
+ IPC_STRUCT_TRAITS_MEMBER(rlz_parameter_value)
+ IPC_STRUCT_TRAITS_MEMBER(input_encoding)
+ IPC_STRUCT_TRAITS_MEMBER(assisted_query_stats)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo)
+ IPC_STRUCT_TRAITS_MEMBER(using_default_theme)
+ IPC_STRUCT_TRAITS_MEMBER(background_color)
+ IPC_STRUCT_TRAITS_MEMBER(text_color)
+ IPC_STRUCT_TRAITS_MEMBER(link_color)
+ IPC_STRUCT_TRAITS_MEMBER(text_color_light)
+ IPC_STRUCT_TRAITS_MEMBER(header_color)
+ IPC_STRUCT_TRAITS_MEMBER(section_border_color)
+ IPC_STRUCT_TRAITS_MEMBER(theme_id)
+ IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
+ IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
+ IPC_STRUCT_TRAITS_MEMBER(image_tiling)
+ IPC_STRUCT_TRAITS_MEMBER(image_height)
+ IPC_STRUCT_TRAITS_MEMBER(has_attribution)
+ IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
+IPC_STRUCT_TRAITS_END()

Powered by Google App Engine
This is Rietveld 408576698