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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 10391101: Test for Pepper IME events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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 #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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698