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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 286 |
287 // Cancels current composition. | 287 // Cancels current composition. |
288 void PpapiPluginCancelComposition(); | 288 void PpapiPluginCancelComposition(); |
289 | 289 |
290 // Informs the render view that a PPAPI plugin has changed selection. | 290 // Informs the render view that a PPAPI plugin has changed selection. |
291 void PpapiPluginSelectionChanged(); | 291 void PpapiPluginSelectionChanged(); |
292 | 292 |
293 // Retrieves the current caret position if a PPAPI plugin has focus. | 293 // Retrieves the current caret position if a PPAPI plugin has focus. |
294 bool GetPpapiPluginCaretBounds(gfx::Rect* rect); | 294 bool GetPpapiPluginCaretBounds(gfx::Rect* rect); |
295 | 295 |
| 296 // Simulates IME events for testing purpose. |
| 297 void SimulateImeSetComposition( |
| 298 const string16& text, |
| 299 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
| 300 int selection_start, |
| 301 int selection_end); |
| 302 void SimulateImeConfirmComposition(const string16& text, |
| 303 const ui::Range& replacement_range); |
| 304 |
296 #if defined(OS_MACOSX) || defined(OS_WIN) | 305 #if defined(OS_MACOSX) || defined(OS_WIN) |
297 // Informs the render view that the given plugin has gained or lost focus. | 306 // Informs the render view that the given plugin has gained or lost focus. |
298 void PluginFocusChanged(bool focused, int plugin_id); | 307 void PluginFocusChanged(bool focused, int plugin_id); |
299 #endif | 308 #endif |
300 | 309 |
301 #if defined(OS_MACOSX) | 310 #if defined(OS_MACOSX) |
302 // Starts plugin IME. | 311 // Starts plugin IME. |
303 void StartPluginIme(); | 312 void StartPluginIme(); |
304 | 313 |
305 // Helper routines for accelerated plugin support. Used by the | 314 // Helper routines for accelerated plugin support. Used by the |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 // bunch of stuff, you should probably create a helper class and put your | 1352 // bunch of stuff, you should probably create a helper class and put your |
1344 // data and methods on that to avoid bloating RenderView more. You can | 1353 // data and methods on that to avoid bloating RenderView more. You can |
1345 // use the Observer interface to filter IPC messages and receive frame change | 1354 // use the Observer interface to filter IPC messages and receive frame change |
1346 // notifications. | 1355 // notifications. |
1347 // --------------------------------------------------------------------------- | 1356 // --------------------------------------------------------------------------- |
1348 | 1357 |
1349 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1358 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1350 }; | 1359 }; |
1351 | 1360 |
1352 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1361 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |