| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 // Cancels current composition. | 290 // Cancels current composition. |
| 291 void PpapiPluginCancelComposition(); | 291 void PpapiPluginCancelComposition(); |
| 292 | 292 |
| 293 // Informs the render view that a PPAPI plugin has changed selection. | 293 // Informs the render view that a PPAPI plugin has changed selection. |
| 294 void PpapiPluginSelectionChanged(); | 294 void PpapiPluginSelectionChanged(); |
| 295 | 295 |
| 296 // Retrieves the current caret position if a PPAPI plugin has focus. | 296 // Retrieves the current caret position if a PPAPI plugin has focus. |
| 297 bool GetPpapiPluginCaretBounds(gfx::Rect* rect); | 297 bool GetPpapiPluginCaretBounds(gfx::Rect* rect); |
| 298 | 298 |
| 299 // Simulates IME events for testing purpose. |
| 300 void SimulateImeSetComposition( |
| 301 const string16& text, |
| 302 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
| 303 int selection_start, |
| 304 int selection_end); |
| 305 void SimulateImeConfirmComposition(const string16& text, |
| 306 const ui::Range& replacement_range); |
| 307 |
| 299 #if defined(OS_MACOSX) || defined(OS_WIN) | 308 #if defined(OS_MACOSX) || defined(OS_WIN) |
| 300 // Informs the render view that the given plugin has gained or lost focus. | 309 // Informs the render view that the given plugin has gained or lost focus. |
| 301 void PluginFocusChanged(bool focused, int plugin_id); | 310 void PluginFocusChanged(bool focused, int plugin_id); |
| 302 #endif | 311 #endif |
| 303 | 312 |
| 304 #if defined(OS_MACOSX) | 313 #if defined(OS_MACOSX) |
| 305 // Starts plugin IME. | 314 // Starts plugin IME. |
| 306 void StartPluginIme(); | 315 void StartPluginIme(); |
| 307 | 316 |
| 308 // Helper routines for accelerated plugin support. Used by the | 317 // Helper routines for accelerated plugin support. Used by the |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 // bunch of stuff, you should probably create a helper class and put your | 1366 // bunch of stuff, you should probably create a helper class and put your |
| 1358 // data and methods on that to avoid bloating RenderView more. You can | 1367 // data and methods on that to avoid bloating RenderView more. You can |
| 1359 // use the Observer interface to filter IPC messages and receive frame change | 1368 // use the Observer interface to filter IPC messages and receive frame change |
| 1360 // notifications. | 1369 // notifications. |
| 1361 // --------------------------------------------------------------------------- | 1370 // --------------------------------------------------------------------------- |
| 1362 | 1371 |
| 1363 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1372 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1364 }; | 1373 }; |
| 1365 | 1374 |
| 1366 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1375 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |