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

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

Issue 23496051: Make VibrationMessageFilter available to other platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and updated by review comments. Created 7 years, 1 month 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) 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"
(...skipping 2253 matching lines...) Expand 10 before | Expand all | Expand 10 after
2264 // Notification that the urls for the favicon of a site has been determined. 2264 // Notification that the urls for the favicon of a site has been determined.
2265 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL, 2265 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL,
2266 int32 /* page_id */, 2266 int32 /* page_id */,
2267 std::vector<content::FaviconURL> /* candidates */) 2267 std::vector<content::FaviconURL> /* candidates */)
2268 2268
2269 // Sent once a paint happens after the first non empty layout. In other words 2269 // Sent once a paint happens after the first non empty layout. In other words
2270 // after the page has painted something. 2270 // after the page has painted something.
2271 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, 2271 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint,
2272 int /* page_id */) 2272 int /* page_id */)
2273 2273
2274 // Sent by the renderer to the browser to start a vibration with the given
2275 // duration.
2276 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate,
2277 int64 /* milliseconds */)
2278
2279 // Sent by the renderer to the browser to cancel the currently running
2280 // vibration, if there is one.
2281 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration)
2282
2274 #if defined(OS_ANDROID) 2283 #if defined(OS_ANDROID)
2275 // Response to ViewMsg_FindMatchRects. 2284 // Response to ViewMsg_FindMatchRects.
2276 // 2285 //
2277 // |version| will contain the current version number of the renderer's find 2286 // |version| will contain the current version number of the renderer's find
2278 // match list (incremented whenever they change), which should be passed in the 2287 // match list (incremented whenever they change), which should be passed in the
2279 // next call to ViewMsg_FindMatchRects. 2288 // next call to ViewMsg_FindMatchRects.
2280 // 2289 //
2281 // |rects| will either contain a list of the enclosing rects of all matches 2290 // |rects| will either contain a list of the enclosing rects of all matches
2282 // found by the most recent Find operation, or will be empty if |version| is not 2291 // found by the most recent Find operation, or will be empty if |version| is not
2283 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence 2292 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence
(...skipping 21 matching lines...) Expand all
2305 base::SharedMemoryHandle /* encoded_data_handle */, 2314 base::SharedMemoryHandle /* encoded_data_handle */,
2306 base::FileDescriptor /* pcm_output */, 2315 base::FileDescriptor /* pcm_output */,
2307 uint32_t /* data_size*/) 2316 uint32_t /* data_size*/)
2308 2317
2309 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming 2318 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
2310 // display events. If |enabled| is true, the BeginFrame message will continue 2319 // display events. If |enabled| is true, the BeginFrame message will continue
2311 // to be be delivered until the notification is disabled. 2320 // to be be delivered until the notification is disabled.
2312 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, 2321 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame,
2313 bool /* enabled */) 2322 bool /* enabled */)
2314 2323
2315 // Sent by the renderer to the browser to start a vibration with the given
2316 // duration.
2317 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate,
2318 int64 /* milliseconds */)
2319
2320 // Sent by the renderer to the browser to cancel the currently running
2321 // vibration, if there is one.
2322 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration)
2323
2324 #elif defined(OS_MACOSX) 2324 #elif defined(OS_MACOSX)
2325 // Request that the browser load a font into shared memory for us. 2325 // Request that the browser load a font into shared memory for us.
2326 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, 2326 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont,
2327 FontDescriptor /* font to load */, 2327 FontDescriptor /* font to load */,
2328 uint32 /* buffer size */, 2328 uint32 /* buffer size */,
2329 base::SharedMemoryHandle /* font data */, 2329 base::SharedMemoryHandle /* font data */,
2330 uint32 /* font id */) 2330 uint32 /* font id */)
2331 2331
2332 // Informs the browser that a plugin has gained or lost focus. 2332 // Informs the browser that a plugin has gained or lost focus.
2333 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, 2333 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2372 // synchronously (see crbug.com/120597). This IPC message sends the character 2372 // synchronously (see crbug.com/120597). This IPC message sends the character
2373 // bounds after every composition change to always have correct bound info. 2373 // bounds after every composition change to always have correct bound info.
2374 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2374 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2375 gfx::Range /* composition range */, 2375 gfx::Range /* composition range */,
2376 std::vector<gfx::Rect> /* character bounds */) 2376 std::vector<gfx::Rect> /* character bounds */)
2377 #endif 2377 #endif
2378 2378
2379 // Adding a new message? Stick to the sort order above: first platform 2379 // Adding a new message? Stick to the sort order above: first platform
2380 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2380 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2381 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2381 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698