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

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: Don't try to add default underline for commitText(), attempt to fix Mac builds Created 4 years 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 // Notification that the given plugin has crashed. 347 // Notification that the given plugin has crashed.
348 void PluginCrashed(const base::FilePath& plugin_path, 348 void PluginCrashed(const base::FilePath& plugin_path,
349 base::ProcessId plugin_pid); 349 base::ProcessId plugin_pid);
350 350
351 // Simulates IME events for testing purpose. 351 // Simulates IME events for testing purpose.
352 void SimulateImeSetComposition( 352 void SimulateImeSetComposition(
353 const base::string16& text, 353 const base::string16& text,
354 const std::vector<blink::WebCompositionUnderline>& underlines, 354 const std::vector<blink::WebCompositionUnderline>& underlines,
355 int selection_start, 355 int selection_start,
356 int selection_end); 356 int selection_end);
357 void SimulateImeCommitText(const base::string16& text, 357 void SimulateImeCommitText(
358 const gfx::Range& replacement_range); 358 const base::string16& text,
359 const std::vector<blink::WebCompositionUnderline>& underlines,
360 const gfx::Range& replacement_range);
359 void SimulateImeFinishComposingText(bool keep_selection); 361 void SimulateImeFinishComposingText(bool keep_selection);
360 362
361 // TODO(jam): remove these once the IPC handler moves from RenderView to 363 // TODO(jam): remove these once the IPC handler moves from RenderView to
362 // RenderFrame. 364 // RenderFrame.
363 void OnImeSetComposition( 365 void OnImeSetComposition(
364 const base::string16& text, 366 const base::string16& text,
365 const std::vector<blink::WebCompositionUnderline>& underlines, 367 const std::vector<blink::WebCompositionUnderline>& underlines,
366 int selection_start, 368 int selection_start,
367 int selection_end); 369 int selection_end);
368 void OnImeCommitText(const base::string16& text, 370 void OnImeCommitText(const base::string16& text,
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 bool browser_side_navigation_pending_ = false; 1347 bool browser_side_navigation_pending_ = false;
1346 1348
1347 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1349 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1348 1350
1349 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1351 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1350 }; 1352 };
1351 1353
1352 } // namespace content 1354 } // namespace content
1353 1355
1354 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1356 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698