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

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

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d 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"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 45 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
46 #include "third_party/WebKit/public/web/WebFindOptions.h" 46 #include "third_party/WebKit/public/web/WebFindOptions.h"
47 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" 47 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h"
48 #include "third_party/WebKit/public/web/WebPluginAction.h" 48 #include "third_party/WebKit/public/web/WebPluginAction.h"
49 #include "third_party/WebKit/public/web/WebPopupType.h" 49 #include "third_party/WebKit/public/web/WebPopupType.h"
50 #include "third_party/WebKit/public/web/WebScreenInfo.h" 50 #include "third_party/WebKit/public/web/WebScreenInfo.h"
51 #include "third_party/WebKit/public/web/WebTextDirection.h" 51 #include "third_party/WebKit/public/web/WebTextDirection.h"
52 #include "third_party/skia/include/core/SkBitmap.h" 52 #include "third_party/skia/include/core/SkBitmap.h"
53 #include "ui/base/ime/text_input_mode.h" 53 #include "ui/base/ime/text_input_mode.h"
54 #include "ui/base/ime/text_input_type.h" 54 #include "ui/base/ime/text_input_type.h"
55 #include "ui/base/range/range.h"
56 #include "ui/base/ui_base_types.h" 55 #include "ui/base/ui_base_types.h"
57 #include "ui/gfx/point.h" 56 #include "ui/gfx/point.h"
57 #include "ui/gfx/range/range.h"
58 #include "ui/gfx/rect.h" 58 #include "ui/gfx/rect.h"
59 #include "ui/gfx/rect_f.h" 59 #include "ui/gfx/rect_f.h"
60 #include "ui/gfx/vector2d.h" 60 #include "ui/gfx/vector2d.h"
61 #include "ui/gfx/vector2d_f.h" 61 #include "ui/gfx/vector2d_f.h"
62 #include "ui/shell_dialogs/selected_file_info.h" 62 #include "ui/shell_dialogs/selected_file_info.h"
63 63
64 #if defined(OS_MACOSX) 64 #if defined(OS_MACOSX)
65 #include "content/common/mac/font_descriptor.h" 65 #include "content/common/mac/font_descriptor.h"
66 #endif 66 #endif
67 67
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 IPC_MESSAGE_ROUTED4( 1073 IPC_MESSAGE_ROUTED4(
1074 ViewMsg_ImeSetComposition, 1074 ViewMsg_ImeSetComposition,
1075 string16, /* text */ 1075 string16, /* text */
1076 std::vector<WebKit::WebCompositionUnderline>, /* underlines */ 1076 std::vector<WebKit::WebCompositionUnderline>, /* underlines */
1077 int, /* selectiont_start */ 1077 int, /* selectiont_start */
1078 int /* selection_end */) 1078 int /* selection_end */)
1079 1079
1080 // This message confirms an ongoing composition. 1080 // This message confirms an ongoing composition.
1081 IPC_MESSAGE_ROUTED3(ViewMsg_ImeConfirmComposition, 1081 IPC_MESSAGE_ROUTED3(ViewMsg_ImeConfirmComposition,
1082 string16 /* text */, 1082 string16 /* text */,
1083 ui::Range /* replacement_range */, 1083 gfx::Range /* replacement_range */,
1084 bool /* keep_selection */) 1084 bool /* keep_selection */)
1085 1085
1086 // Sets the text composition to be between the given start and end offsets 1086 // Sets the text composition to be between the given start and end offsets
1087 // in the currently focused editable field. 1087 // in the currently focused editable field.
1088 IPC_MESSAGE_ROUTED3(ViewMsg_SetCompositionFromExistingText, 1088 IPC_MESSAGE_ROUTED3(ViewMsg_SetCompositionFromExistingText,
1089 int /* start */, 1089 int /* start */,
1090 int /* end */, 1090 int /* end */,
1091 std::vector<WebKit::WebCompositionUnderline> /* underlines */) 1091 std::vector<WebKit::WebCompositionUnderline> /* underlines */)
1092 1092
1093 // Selects between the given start and end offsets in the currently focused 1093 // Selects between the given start and end offsets in the currently focused
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
1953 1953
1954 IPC_MESSAGE_ROUTED0(ViewHostMsg_SelectRange_ACK) 1954 IPC_MESSAGE_ROUTED0(ViewHostMsg_SelectRange_ACK)
1955 IPC_MESSAGE_ROUTED0(ViewHostMsg_MoveCaret_ACK) 1955 IPC_MESSAGE_ROUTED0(ViewHostMsg_MoveCaret_ACK)
1956 1956
1957 // Notification that the text selection has changed. 1957 // Notification that the text selection has changed.
1958 // Note: The secound parameter is the character based offset of the string16 1958 // Note: The secound parameter is the character based offset of the string16
1959 // text in the document. 1959 // text in the document.
1960 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, 1960 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
1961 string16 /* text covers the selection range */, 1961 string16 /* text covers the selection range */,
1962 size_t /* the offset of the text in the document */, 1962 size_t /* the offset of the text in the document */,
1963 ui::Range /* selection range in the document */) 1963 gfx::Range /* selection range in the document */)
1964 1964
1965 // Notification that the selection bounds have changed. 1965 // Notification that the selection bounds have changed.
1966 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, 1966 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged,
1967 ViewHostMsg_SelectionBounds_Params) 1967 ViewHostMsg_SelectionBounds_Params)
1968 1968
1969 // Asks the browser to open the color chooser. 1969 // Asks the browser to open the color chooser.
1970 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenColorChooser, 1970 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenColorChooser,
1971 int /* id */, 1971 int /* id */,
1972 SkColor /* color */) 1972 SkColor /* color */)
1973 1973
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
2362 // renderer is finished with them. 2362 // renderer is finished with them.
2363 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, 2363 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
2364 TransportDIB::Id /* DIB id */) 2364 TransportDIB::Id /* DIB id */)
2365 #endif 2365 #endif
2366 2366
2367 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) 2367 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA)
2368 // On MACOSX, WIN and AURA IME can request composition character bounds 2368 // On MACOSX, WIN and AURA IME can request composition character bounds
2369 // synchronously (see crbug.com/120597). This IPC message sends the character 2369 // synchronously (see crbug.com/120597). This IPC message sends the character
2370 // bounds after every composition change to always have correct bound info. 2370 // bounds after every composition change to always have correct bound info.
2371 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2371 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2372 ui::Range /* composition range */, 2372 gfx::Range /* composition range */,
2373 std::vector<gfx::Rect> /* character bounds */) 2373 std::vector<gfx::Rect> /* character bounds */)
2374 #endif 2374 #endif
2375 2375
2376 // Adding a new message? Stick to the sort order above: first platform 2376 // Adding a new message? Stick to the sort order above: first platform
2377 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2377 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2378 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2378 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/text_input_client_messages.h ('k') | content/port/browser/render_widget_host_view_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698