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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 2568093003: Support parsing BackgroundSpans and UnderlineSpans in Android IME's commitText() (Closed)
Patch Set: Fix some stuff breaking Linux 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 (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 // A BrowserPluginGuest is the browser side of a browser <--> embedder 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder
7 // renderer side of browser <--> embedder renderer communication. 7 // renderer side of browser <--> embedder renderer communication.
8 // 8 //
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any
10 // messages about the guest render process that the embedder might be interested 10 // messages about the guest render process that the embedder might be interested
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 void OnUnlockMouseAck(int instance_id); 340 void OnUnlockMouseAck(int instance_id);
341 void OnUpdateGeometry(int instance_id, const gfx::Rect& view_rect); 341 void OnUpdateGeometry(int instance_id, const gfx::Rect& view_rect);
342 342
343 void OnTextInputStateChanged(const TextInputState& params); 343 void OnTextInputStateChanged(const TextInputState& params);
344 void OnImeSetComposition( 344 void OnImeSetComposition(
345 int instance_id, 345 int instance_id,
346 const std::string& text, 346 const std::string& text,
347 const std::vector<blink::WebCompositionUnderline>& underlines, 347 const std::vector<blink::WebCompositionUnderline>& underlines,
348 int selection_start, 348 int selection_start,
349 int selection_end); 349 int selection_end);
350 void OnImeCommitText(int instance_id, 350 void OnImeCommitText(
351 const std::string& text, 351 int instance_id,
352 int relative_cursor_pos); 352 const std::string& text,
353 const std::vector<blink::WebCompositionUnderline>& underlines,
354 int relative_cursor_pos);
353 void OnImeFinishComposingText(bool keep_selection); 355 void OnImeFinishComposingText(bool keep_selection);
354 void OnExtendSelectionAndDelete(int instance_id, int before, int after); 356 void OnExtendSelectionAndDelete(int instance_id, int before, int after);
355 void OnImeCancelComposition(); 357 void OnImeCancelComposition();
356 #if defined(OS_MACOSX) || defined(USE_AURA) 358 #if defined(OS_MACOSX) || defined(USE_AURA)
357 void OnImeCompositionRangeChanged( 359 void OnImeCompositionRangeChanged(
358 const gfx::Range& range, 360 const gfx::Range& range,
359 const std::vector<gfx::Rect>& character_bounds); 361 const std::vector<gfx::Rect>& character_bounds);
360 #endif 362 #endif
361 363
362 // Message handlers for messages from guest. 364 // Message handlers for messages from guest.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // Weak pointer used to ask GeolocationPermissionContext about geolocation 465 // Weak pointer used to ask GeolocationPermissionContext about geolocation
464 // permission. 466 // permission.
465 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 467 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
466 468
467 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 469 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
468 }; 470 };
469 471
470 } // namespace content 472 } // namespace content
471 473
472 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 474 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698