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

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

Issue 2568093003: Support parsing BackgroundSpans and UnderlineSpans in Android IME's commitText() (Closed)
Patch Set: Use addCompositionUnderlines() where I said I couldn't Created 3 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // Notification that the given plugin has crashed. 357 // Notification that the given plugin has crashed.
358 void PluginCrashed(const base::FilePath& plugin_path, 358 void PluginCrashed(const base::FilePath& plugin_path,
359 base::ProcessId plugin_pid); 359 base::ProcessId plugin_pid);
360 360
361 // Simulates IME events for testing purpose. 361 // Simulates IME events for testing purpose.
362 void SimulateImeSetComposition( 362 void SimulateImeSetComposition(
363 const base::string16& text, 363 const base::string16& text,
364 const std::vector<blink::WebCompositionUnderline>& underlines, 364 const std::vector<blink::WebCompositionUnderline>& underlines,
365 int selection_start, 365 int selection_start,
366 int selection_end); 366 int selection_end);
367 void SimulateImeCommitText(const base::string16& text, 367 void SimulateImeCommitText(
368 const gfx::Range& replacement_range); 368 const base::string16& text,
369 const std::vector<blink::WebCompositionUnderline>& underlines,
370 const gfx::Range& replacement_range);
369 void SimulateImeFinishComposingText(bool keep_selection); 371 void SimulateImeFinishComposingText(bool keep_selection);
370 372
371 // TODO(jam): remove these once the IPC handler moves from RenderView to 373 // TODO(jam): remove these once the IPC handler moves from RenderView to
372 // RenderFrame. 374 // RenderFrame.
373 void OnImeSetComposition( 375 void OnImeSetComposition(
374 const base::string16& text, 376 const base::string16& text,
375 const std::vector<blink::WebCompositionUnderline>& underlines, 377 const std::vector<blink::WebCompositionUnderline>& underlines,
376 int selection_start, 378 int selection_start,
377 int selection_end); 379 int selection_end);
378 void OnImeCommitText(const base::string16& text, 380 void OnImeCommitText(const base::string16& text,
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 bool browser_side_navigation_pending_ = false; 1366 bool browser_side_navigation_pending_ = false;
1365 1367
1366 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1368 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1367 1369
1368 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1370 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1369 }; 1371 };
1370 1372
1371 } // namespace content 1373 } // namespace content
1372 1374
1373 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1375 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698