OLD | NEW |
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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
7 | 7 |
8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
10 #endif | 10 #endif |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "ui/gfx/native_widget_types.h" | 30 #include "ui/gfx/native_widget_types.h" |
31 #include "ui/gfx/range/range.h" | 31 #include "ui/gfx/range/range.h" |
32 #include "ui/gfx/rect.h" | 32 #include "ui/gfx/rect.h" |
33 #include "ui/surface/transport_dib.h" | 33 #include "ui/surface/transport_dib.h" |
34 | 34 |
35 class SkBitmap; | 35 class SkBitmap; |
36 | 36 |
37 struct AccessibilityHostMsg_EventParams; | 37 struct AccessibilityHostMsg_EventParams; |
38 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 38 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
39 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 39 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
| 40 struct ViewHostMsg_SelectionBounds_Params; |
40 struct ViewHostMsg_TextInputState_Params; | 41 struct ViewHostMsg_TextInputState_Params; |
41 struct ViewHostMsg_SelectionBounds_Params; | |
42 | 42 |
43 namespace media { | 43 namespace media { |
44 class VideoFrame; | 44 class VideoFrame; |
45 } | 45 } |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 struct WebScreenInfo; | 48 struct WebScreenInfo; |
49 } | 49 } |
50 | 50 |
51 namespace content { | 51 namespace content { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Take focus from the associated View component. | 212 // Take focus from the associated View component. |
213 virtual void Blur() = 0; | 213 virtual void Blur() = 0; |
214 | 214 |
215 // Sets the cursor to the one associated with the specified cursor_type | 215 // Sets the cursor to the one associated with the specified cursor_type |
216 virtual void UpdateCursor(const WebCursor& cursor) = 0; | 216 virtual void UpdateCursor(const WebCursor& cursor) = 0; |
217 | 217 |
218 // Indicates whether the page has finished loading. | 218 // Indicates whether the page has finished loading. |
219 virtual void SetIsLoading(bool is_loading) = 0; | 219 virtual void SetIsLoading(bool is_loading) = 0; |
220 | 220 |
221 // Updates the type of the input method attached to the view. | 221 // Updates the type of the input method attached to the view. |
222 virtual void TextInputTypeChanged(ui::TextInputType type, | 222 virtual void TextInputStateChanged( |
223 ui::TextInputMode mode, | 223 const ViewHostMsg_TextInputState_Params& params) = 0; |
224 bool can_compose_inline) = 0; | |
225 | 224 |
226 // Cancel the ongoing composition of the input method attached to the view. | 225 // Cancel the ongoing composition of the input method attached to the view. |
227 virtual void ImeCancelComposition() = 0; | 226 virtual void ImeCancelComposition() = 0; |
228 | 227 |
229 // Notifies the View that the renderer has ceased to exist. | 228 // Notifies the View that the renderer has ceased to exist. |
230 virtual void RenderProcessGone(base::TerminationStatus status, | 229 virtual void RenderProcessGone(base::TerminationStatus status, |
231 int error_code) = 0; | 230 int error_code) = 0; |
232 | 231 |
233 // Tells the View to destroy itself. | 232 // Tells the View to destroy itself. |
234 virtual void Destroy() = 0; | 233 virtual void Destroy() = 0; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 uint32 renderer_frame_number_; | 421 uint32 renderer_frame_number_; |
423 | 422 |
424 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 423 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
425 | 424 |
426 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 425 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
427 }; | 426 }; |
428 | 427 |
429 } // namespace content | 428 } // namespace content |
430 | 429 |
431 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |