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

Side by Side Diff: chrome/common/instant_struct_traits.h

Issue 2796643002: NTP: Record TileType metrics also on desktop (Closed)
Patch Set: review Created 3 years, 8 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 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include "chrome/common/search/instant_types.h" 6 #include "chrome/common/search/instant_types.h"
7 #include "chrome/common/search/ntp_logging_events.h" 7 #include "chrome/common/search/ntp_logging_events.h"
8 #include "components/ntp_tiles/tile_source.h"
9 #include "components/ntp_tiles/tile_visual_type.h"
8 #include "components/omnibox/common/omnibox_focus_state.h" 10 #include "components/omnibox/common/omnibox_focus_state.h"
9 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
10 12
11 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST) 13 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST)
12 14
13 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason, 15 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason,
14 OMNIBOX_FOCUS_CHANGE_REASON_LAST) 16 OMNIBOX_FOCUS_CHANGE_REASON_LAST)
15 17
16 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType, NTP_EVENT_TYPE_LAST) 18 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType, NTP_EVENT_TYPE_LAST)
17 19
18 IPC_ENUM_TRAITS_MAX_VALUE(ntp_tiles::TileSource, ntp_tiles::TileSource::LAST) 20 IPC_ENUM_TRAITS_MAX_VALUE(ntp_tiles::TileSource, ntp_tiles::TileSource::LAST)
19 21
22 IPC_ENUM_TRAITS_MAX_VALUE(ntp_tiles::TileVisualType, ntp_tiles::TILE_TYPE_MAX)
23
20 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem) 24 IPC_STRUCT_TRAITS_BEGIN(InstantMostVisitedItem)
21 IPC_STRUCT_TRAITS_MEMBER(url) 25 IPC_STRUCT_TRAITS_MEMBER(url)
22 IPC_STRUCT_TRAITS_MEMBER(title) 26 IPC_STRUCT_TRAITS_MEMBER(title)
23 IPC_STRUCT_TRAITS_MEMBER(thumbnail) 27 IPC_STRUCT_TRAITS_MEMBER(thumbnail)
24 IPC_STRUCT_TRAITS_MEMBER(favicon) 28 IPC_STRUCT_TRAITS_MEMBER(favicon)
25 IPC_STRUCT_TRAITS_MEMBER(source) 29 IPC_STRUCT_TRAITS_MEMBER(source)
26 IPC_STRUCT_TRAITS_END() 30 IPC_STRUCT_TRAITS_END()
27 31
28 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion) 32 IPC_STRUCT_TRAITS_BEGIN(InstantSuggestion)
29 IPC_STRUCT_TRAITS_MEMBER(text) 33 IPC_STRUCT_TRAITS_MEMBER(text)
(...skipping 17 matching lines...) Expand all
47 IPC_STRUCT_TRAITS_MEMBER(header_color) 51 IPC_STRUCT_TRAITS_MEMBER(header_color)
48 IPC_STRUCT_TRAITS_MEMBER(section_border_color) 52 IPC_STRUCT_TRAITS_MEMBER(section_border_color)
49 IPC_STRUCT_TRAITS_MEMBER(theme_id) 53 IPC_STRUCT_TRAITS_MEMBER(theme_id)
50 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment) 54 IPC_STRUCT_TRAITS_MEMBER(image_horizontal_alignment)
51 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment) 55 IPC_STRUCT_TRAITS_MEMBER(image_vertical_alignment)
52 IPC_STRUCT_TRAITS_MEMBER(image_tiling) 56 IPC_STRUCT_TRAITS_MEMBER(image_tiling)
53 IPC_STRUCT_TRAITS_MEMBER(image_height) 57 IPC_STRUCT_TRAITS_MEMBER(image_height)
54 IPC_STRUCT_TRAITS_MEMBER(has_attribution) 58 IPC_STRUCT_TRAITS_MEMBER(has_attribution)
55 IPC_STRUCT_TRAITS_MEMBER(logo_alternate) 59 IPC_STRUCT_TRAITS_MEMBER(logo_alternate)
56 IPC_STRUCT_TRAITS_END() 60 IPC_STRUCT_TRAITS_END()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698