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

Side by Side Diff: content/common/view_messages.h

Issue 23026006: Add support for color input datalist on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "cc/output/begin_frame_args.h" 11 #include "cc/output/begin_frame_args.h"
12 #include "cc/output/compositor_frame.h" 12 #include "cc/output/compositor_frame.h"
13 #include "cc/output/compositor_frame_ack.h" 13 #include "cc/output/compositor_frame_ack.h"
14 #include "content/common/browser_rendering_stats.h" 14 #include "content/common/browser_rendering_stats.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/common/content_param_traits.h" 16 #include "content/common/content_param_traits.h"
17 #include "content/common/cookie_data.h" 17 #include "content/common/cookie_data.h"
18 #include "content/common/navigation_gesture.h" 18 #include "content/common/navigation_gesture.h"
19 #include "content/common/pepper_renderer_instance_data.h" 19 #include "content/common/pepper_renderer_instance_data.h"
20 #include "content/common/view_message_enums.h" 20 #include "content/common/view_message_enums.h"
21 #include "content/common/webplugin_geometry.h" 21 #include "content/common/webplugin_geometry.h"
22 #include "content/port/common/input_event_ack_state.h" 22 #include "content/port/common/input_event_ack_state.h"
23 #include "content/public/common/color_suggestion.h"
23 #include "content/public/common/common_param_traits.h" 24 #include "content/public/common/common_param_traits.h"
24 #include "content/public/common/context_menu_params.h" 25 #include "content/public/common/context_menu_params.h"
25 #include "content/public/common/favicon_url.h" 26 #include "content/public/common/favicon_url.h"
26 #include "content/public/common/file_chooser_params.h" 27 #include "content/public/common/file_chooser_params.h"
27 #include "content/public/common/frame_navigate_params.h" 28 #include "content/public/common/frame_navigate_params.h"
28 #include "content/public/common/javascript_message_type.h" 29 #include "content/public/common/javascript_message_type.h"
29 #include "content/public/common/menu_item.h" 30 #include "content/public/common/menu_item.h"
30 #include "content/public/common/page_state.h" 31 #include "content/public/common/page_state.h"
31 #include "content/public/common/page_zoom.h" 32 #include "content/public/common/page_zoom.h"
32 #include "content/public/common/referrer.h" 33 #include "content/public/common/referrer.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 IPC_STRUCT_TRAITS_MEMBER(tool_tip) 153 IPC_STRUCT_TRAITS_MEMBER(tool_tip)
153 IPC_STRUCT_TRAITS_MEMBER(type) 154 IPC_STRUCT_TRAITS_MEMBER(type)
154 IPC_STRUCT_TRAITS_MEMBER(action) 155 IPC_STRUCT_TRAITS_MEMBER(action)
155 IPC_STRUCT_TRAITS_MEMBER(rtl) 156 IPC_STRUCT_TRAITS_MEMBER(rtl)
156 IPC_STRUCT_TRAITS_MEMBER(has_directional_override) 157 IPC_STRUCT_TRAITS_MEMBER(has_directional_override)
157 IPC_STRUCT_TRAITS_MEMBER(enabled) 158 IPC_STRUCT_TRAITS_MEMBER(enabled)
158 IPC_STRUCT_TRAITS_MEMBER(checked) 159 IPC_STRUCT_TRAITS_MEMBER(checked)
159 IPC_STRUCT_TRAITS_MEMBER(submenu) 160 IPC_STRUCT_TRAITS_MEMBER(submenu)
160 IPC_STRUCT_TRAITS_END() 161 IPC_STRUCT_TRAITS_END()
161 162
163 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion)
164 IPC_STRUCT_TRAITS_MEMBER(value_as_color)
165 IPC_STRUCT_TRAITS_MEMBER(value_as_text)
166 IPC_STRUCT_TRAITS_MEMBER(label)
167 IPC_STRUCT_TRAITS_END()
168
162 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) 169 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams)
163 IPC_STRUCT_TRAITS_MEMBER(media_type) 170 IPC_STRUCT_TRAITS_MEMBER(media_type)
164 IPC_STRUCT_TRAITS_MEMBER(x) 171 IPC_STRUCT_TRAITS_MEMBER(x)
165 IPC_STRUCT_TRAITS_MEMBER(y) 172 IPC_STRUCT_TRAITS_MEMBER(y)
166 IPC_STRUCT_TRAITS_MEMBER(link_url) 173 IPC_STRUCT_TRAITS_MEMBER(link_url)
167 IPC_STRUCT_TRAITS_MEMBER(link_text) 174 IPC_STRUCT_TRAITS_MEMBER(link_text)
168 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) 175 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url)
169 IPC_STRUCT_TRAITS_MEMBER(src_url) 176 IPC_STRUCT_TRAITS_MEMBER(src_url)
170 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked) 177 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked)
171 IPC_STRUCT_TRAITS_MEMBER(page_url) 178 IPC_STRUCT_TRAITS_MEMBER(page_url)
(...skipping 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1955 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, 1962 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
1956 string16 /* text covers the selection range */, 1963 string16 /* text covers the selection range */,
1957 size_t /* the offset of the text in the document */, 1964 size_t /* the offset of the text in the document */,
1958 ui::Range /* selection range in the document */) 1965 ui::Range /* selection range in the document */)
1959 1966
1960 // Notification that the selection bounds have changed. 1967 // Notification that the selection bounds have changed.
1961 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, 1968 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged,
1962 ViewHostMsg_SelectionBounds_Params) 1969 ViewHostMsg_SelectionBounds_Params)
1963 1970
1964 // Asks the browser to open the color chooser. 1971 // Asks the browser to open the color chooser.
1965 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenColorChooser, 1972 IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenColorChooser,
1966 int /* id */, 1973 int /* id */,
1967 SkColor /* color */) 1974 SkColor /* color */,
1975 std::vector<content::ColorSuggestion> /* suggestions */)
1968 1976
1969 // Asks the browser to end the color chooser. 1977 // Asks the browser to end the color chooser.
1970 IPC_MESSAGE_ROUTED1(ViewHostMsg_EndColorChooser, int /* id */) 1978 IPC_MESSAGE_ROUTED1(ViewHostMsg_EndColorChooser, int /* id */)
1971 1979
1972 // Change the selected color in the color chooser. 1980 // Change the selected color in the color chooser.
1973 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser, 1981 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser,
1974 int /* id */, 1982 int /* id */,
1975 SkColor /* color */) 1983 SkColor /* color */)
1976 1984
1977 // Asks the browser to display the file chooser. The result is returned in a 1985 // Asks the browser to display the file chooser. The result is returned in a
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2368 // synchronously (see crbug.com/120597). This IPC message sends the character 2376 // synchronously (see crbug.com/120597). This IPC message sends the character
2369 // bounds after every composition change to always have correct bound info. 2377 // bounds after every composition change to always have correct bound info.
2370 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2378 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2371 ui::Range /* composition range */, 2379 ui::Range /* composition range */,
2372 std::vector<gfx::Rect> /* character bounds */) 2380 std::vector<gfx::Rect> /* character bounds */)
2373 #endif 2381 #endif
2374 2382
2375 // Adding a new message? Stick to the sort order above: first platform 2383 // Adding a new message? Stick to the sort order above: first platform
2376 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2384 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2377 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2385 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698