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

Side by Side Diff: content/port/browser/render_widget_host_view_port.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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/pepper/pepper_plugin_instance_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "cc/output/compositor_frame.h" 11 #include "cc/output/compositor_frame.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/port/browser/event_with_latency_info.h" 13 #include "content/port/browser/event_with_latency_info.h"
14 #include "content/port/common/input_event_ack_state.h" 14 #include "content/port/common/input_event_ack_state.h"
15 #include "content/public/browser/render_widget_host_view.h" 15 #include "content/public/browser/render_widget_host_view.h"
16 #include "ipc/ipc_listener.h" 16 #include "ipc/ipc_listener.h"
17 #include "third_party/WebKit/public/web/WebPopupType.h" 17 #include "third_party/WebKit/public/web/WebPopupType.h"
18 #include "third_party/WebKit/public/web/WebTextDirection.h" 18 #include "third_party/WebKit/public/web/WebTextDirection.h"
19 #include "ui/base/ime/text_input_mode.h" 19 #include "ui/base/ime/text_input_mode.h"
20 #include "ui/base/ime/text_input_type.h" 20 #include "ui/base/ime/text_input_type.h"
21 #include "ui/base/range/range.h" 21 #include "ui/gfx/range/range.h"
22 #include "ui/surface/transport_dib.h" 22 #include "ui/surface/transport_dib.h"
23 23
24 class SkBitmap; 24 class SkBitmap;
25 class WebCursor; 25 class WebCursor;
26 26
27 struct AccessibilityHostMsg_EventParams; 27 struct AccessibilityHostMsg_EventParams;
28 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 28 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
29 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; 29 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
30 struct ViewHostMsg_TextInputState_Params; 30 struct ViewHostMsg_TextInputState_Params;
31 struct ViewHostMsg_SelectionBounds_Params; 31 struct ViewHostMsg_SelectionBounds_Params;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void TextInputTypeChanged(ui::TextInputType type, 99 virtual void TextInputTypeChanged(ui::TextInputType type,
100 ui::TextInputMode mode, 100 ui::TextInputMode mode,
101 bool can_compose_inline) = 0; 101 bool can_compose_inline) = 0;
102 102
103 // Cancel the ongoing composition of the input method attached to the view. 103 // Cancel the ongoing composition of the input method attached to the view.
104 virtual void ImeCancelComposition() = 0; 104 virtual void ImeCancelComposition() = 0;
105 105
106 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) 106 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA)
107 // Updates the range of the marked text in an IME composition. 107 // Updates the range of the marked text in an IME composition.
108 virtual void ImeCompositionRangeChanged( 108 virtual void ImeCompositionRangeChanged(
109 const ui::Range& range, 109 const gfx::Range& range,
110 const std::vector<gfx::Rect>& character_bounds) = 0; 110 const std::vector<gfx::Rect>& character_bounds) = 0;
111 #endif 111 #endif
112 112
113 // Informs the view that a portion of the widget's backing store was scrolled 113 // Informs the view that a portion of the widget's backing store was scrolled
114 // and/or painted. The view should ensure this gets copied to the screen. 114 // and/or painted. The view should ensure this gets copied to the screen.
115 // 115 //
116 // If the scroll_rect is non-empty, then a portion of the widget's backing 116 // If the scroll_rect is non-empty, then a portion of the widget's backing
117 // store was scrolled by dx pixels horizontally and dy pixels vertically. 117 // store was scrolled by dx pixels horizontally and dy pixels vertically.
118 // The exposed rect from the scroll operation is included in copy_rects. 118 // The exposed rect from the scroll operation is included in copy_rects.
119 // 119 //
(...skipping 21 matching lines...) Expand all
141 // Tells the View to destroy itself. 141 // Tells the View to destroy itself.
142 virtual void Destroy() = 0; 142 virtual void Destroy() = 0;
143 143
144 // Tells the View that the tooltip text for the current mouse position over 144 // Tells the View that the tooltip text for the current mouse position over
145 // the page has changed. 145 // the page has changed.
146 virtual void SetTooltipText(const string16& tooltip_text) = 0; 146 virtual void SetTooltipText(const string16& tooltip_text) = 0;
147 147
148 // Notifies the View that the renderer text selection has changed. 148 // Notifies the View that the renderer text selection has changed.
149 virtual void SelectionChanged(const string16& text, 149 virtual void SelectionChanged(const string16& text,
150 size_t offset, 150 size_t offset,
151 const ui::Range& range) = 0; 151 const gfx::Range& range) = 0;
152 152
153 // Notifies the View that the renderer selection bounds has changed. 153 // Notifies the View that the renderer selection bounds has changed.
154 // |start_rect| and |end_rect| are the bounds end of the selection in the 154 // |start_rect| and |end_rect| are the bounds end of the selection in the
155 // coordinate system of the render view. |start_direction| and |end_direction| 155 // coordinate system of the render view. |start_direction| and |end_direction|
156 // indicates the direction at which the selection was made on touch devices. 156 // indicates the direction at which the selection was made on touch devices.
157 virtual void SelectionBoundsChanged( 157 virtual void SelectionBoundsChanged(
158 const ViewHostMsg_SelectionBounds_Params& params) = 0; 158 const ViewHostMsg_SelectionBounds_Params& params) = 0;
159 159
160 // Notifies the view that the scroll offset has changed. 160 // Notifies the view that the scroll offset has changed.
161 virtual void ScrollOffsetChanged() = 0; 161 virtual void ScrollOffsetChanged() = 0;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 328
329 #if defined(OS_WIN) && defined(USE_AURA) 329 #if defined(OS_WIN) && defined(USE_AURA)
330 virtual void SetParentNativeViewAccessible( 330 virtual void SetParentNativeViewAccessible(
331 gfx::NativeViewAccessible accessible_parent) = 0; 331 gfx::NativeViewAccessible accessible_parent) = 0;
332 #endif 332 #endif
333 }; 333 };
334 334
335 } // namespace content 335 } // namespace content
336 336
337 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 337 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/pepper/pepper_plugin_instance_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698