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

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: Fixed clang compile issues 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 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after
2271 // Notification that the urls for the favicon of a site has been determined. 2271 // Notification that the urls for the favicon of a site has been determined.
2272 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL, 2272 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL,
2273 int32 /* page_id */, 2273 int32 /* page_id */,
2274 std::vector<content::FaviconURL> /* candidates */) 2274 std::vector<content::FaviconURL> /* candidates */)
2275 2275
2276 // Sent once a paint happens after the first non empty layout. In other words 2276 // Sent once a paint happens after the first non empty layout. In other words
2277 // after the page has painted something. 2277 // after the page has painted something.
2278 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, 2278 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint,
2279 int /* page_id */) 2279 int /* page_id */)
2280 2280
2281 // Sent by the renderer to the browser to start a vibration with the given
2282 // duration.
2283 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate,
2284 int64 /* milliseconds */)
2285
2286 // Sent by the renderer to the browser to cancel the currently running
2287 // vibration, if there is one.
2288 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration)
2289
2281 #if defined(OS_ANDROID) 2290 #if defined(OS_ANDROID)
2282 // Response to ViewMsg_FindMatchRects. 2291 // Response to ViewMsg_FindMatchRects.
2283 // 2292 //
2284 // |version| will contain the current version number of the renderer's find 2293 // |version| will contain the current version number of the renderer's find
2285 // match list (incremented whenever they change), which should be passed in the 2294 // match list (incremented whenever they change), which should be passed in the
2286 // next call to ViewMsg_FindMatchRects. 2295 // next call to ViewMsg_FindMatchRects.
2287 // 2296 //
2288 // |rects| will either contain a list of the enclosing rects of all matches 2297 // |rects| will either contain a list of the enclosing rects of all matches
2289 // found by the most recent Find operation, or will be empty if |version| is not 2298 // found by the most recent Find operation, or will be empty if |version| is not
2290 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence 2299 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence
(...skipping 21 matching lines...) Expand all
2312 base::SharedMemoryHandle /* encoded_data_handle */, 2321 base::SharedMemoryHandle /* encoded_data_handle */,
2313 base::FileDescriptor /* pcm_output */, 2322 base::FileDescriptor /* pcm_output */,
2314 uint32_t /* data_size*/) 2323 uint32_t /* data_size*/)
2315 2324
2316 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming 2325 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
2317 // display events. If |enabled| is true, the BeginFrame message will continue 2326 // display events. If |enabled| is true, the BeginFrame message will continue
2318 // to be be delivered until the notification is disabled. 2327 // to be be delivered until the notification is disabled.
2319 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, 2328 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame,
2320 bool /* enabled */) 2329 bool /* enabled */)
2321 2330
2322 // Sent by the renderer to the browser to start a vibration with the given
2323 // duration.
2324 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate,
2325 int64 /* milliseconds */)
2326
2327 // Sent by the renderer to the browser to cancel the currently running
2328 // vibration, if there is one.
2329 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration)
2330
2331 #elif defined(OS_MACOSX) 2331 #elif defined(OS_MACOSX)
2332 // Request that the browser load a font into shared memory for us. 2332 // Request that the browser load a font into shared memory for us.
2333 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, 2333 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont,
2334 FontDescriptor /* font to load */, 2334 FontDescriptor /* font to load */,
2335 uint32 /* buffer size */, 2335 uint32 /* buffer size */,
2336 base::SharedMemoryHandle /* font data */, 2336 base::SharedMemoryHandle /* font data */,
2337 uint32 /* font id */) 2337 uint32 /* font id */)
2338 2338
2339 // Informs the browser that a plugin has gained or lost focus. 2339 // Informs the browser that a plugin has gained or lost focus.
2340 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, 2340 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2379 // synchronously (see crbug.com/120597). This IPC message sends the character 2379 // synchronously (see crbug.com/120597). This IPC message sends the character
2380 // bounds after every composition change to always have correct bound info. 2380 // bounds after every composition change to always have correct bound info.
2381 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2381 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2382 gfx::Range /* composition range */, 2382 gfx::Range /* composition range */,
2383 std::vector<gfx::Rect> /* character bounds */) 2383 std::vector<gfx::Rect> /* character bounds */)
2384 #endif 2384 #endif
2385 2385
2386 // Adding a new message? Stick to the sort order above: first platform 2386 // Adding a new message? Stick to the sort order above: first platform
2387 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2387 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2388 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2388 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698