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 150153004: [WIP] Add Chromium-side support for the Screen Orientation API (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Updated by review comments. Created 6 years, 10 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) 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 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
2137 2137
2138 // Message sent from the renderer to the browser when a HTML form validation 2138 // Message sent from the renderer to the browser when a HTML form validation
2139 // message should be hidden from view. 2139 // message should be hidden from view.
2140 IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage) 2140 IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage)
2141 2141
2142 // Message sent from the renderer to the browser when the suggested co-ordinates 2142 // Message sent from the renderer to the browser when the suggested co-ordinates
2143 // of the anchor for a HTML form validation message have changed. 2143 // of the anchor for a HTML form validation message have changed.
2144 IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage, 2144 IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage,
2145 gfx::Rect /* anchor rectangle in root view coordinate */) 2145 gfx::Rect /* anchor rectangle in root view coordinate */)
2146 2146
2147 // Sent by the renderer to the browser to request locking orientations by given
2148 // orientations map.
2149 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_LockScreenOrientation,
2150 unsigned char /* orientations bit map */,
2151 bool /* lock operation result */)
2152
2153 // Sent by the renderer to the browser to release orientation lock.
2154 IPC_MESSAGE_CONTROL0(ViewHostMsg_UnlockScreenOrientation)
2155
2147 #if defined(OS_ANDROID) 2156 #if defined(OS_ANDROID)
2148 // Response to ViewMsg_FindMatchRects. 2157 // Response to ViewMsg_FindMatchRects.
2149 // 2158 //
2150 // |version| will contain the current version number of the renderer's find 2159 // |version| will contain the current version number of the renderer's find
2151 // match list (incremented whenever they change), which should be passed in the 2160 // match list (incremented whenever they change), which should be passed in the
2152 // next call to ViewMsg_FindMatchRects. 2161 // next call to ViewMsg_FindMatchRects.
2153 // 2162 //
2154 // |rects| will either contain a list of the enclosing rects of all matches 2163 // |rects| will either contain a list of the enclosing rects of all matches
2155 // found by the most recent Find operation, or will be empty if |version| is not 2164 // found by the most recent Find operation, or will be empty if |version| is not
2156 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence 2165 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 // synchronously (see crbug.com/120597). This IPC message sends the character 2252 // synchronously (see crbug.com/120597). This IPC message sends the character
2244 // bounds after every composition change to always have correct bound info. 2253 // bounds after every composition change to always have correct bound info.
2245 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2254 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2246 gfx::Range /* composition range */, 2255 gfx::Range /* composition range */,
2247 std::vector<gfx::Rect> /* character bounds */) 2256 std::vector<gfx::Rect> /* character bounds */)
2248 #endif 2257 #endif
2249 2258
2250 // Adding a new message? Stick to the sort order above: first platform 2259 // Adding a new message? Stick to the sort order above: first platform
2251 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2260 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2252 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2261 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_provider_android.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698