| 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 // 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 void OnUnlockMouseAck(int instance_id); | 332 void OnUnlockMouseAck(int instance_id); |
| 333 void OnUpdateGeometry(int instance_id, const gfx::Rect& view_rect); | 333 void OnUpdateGeometry(int instance_id, const gfx::Rect& view_rect); |
| 334 | 334 |
| 335 void OnTextInputStateChanged(const TextInputState& params); | 335 void OnTextInputStateChanged(const TextInputState& params); |
| 336 void OnImeSetComposition( | 336 void OnImeSetComposition( |
| 337 int instance_id, | 337 int instance_id, |
| 338 const std::string& text, | 338 const std::string& text, |
| 339 const std::vector<blink::WebCompositionUnderline>& underlines, | 339 const std::vector<blink::WebCompositionUnderline>& underlines, |
| 340 int selection_start, | 340 int selection_start, |
| 341 int selection_end); | 341 int selection_end); |
| 342 void OnImeConfirmComposition( | 342 void OnImeConfirmComposition(int instance_id, |
| 343 int instance_id, | 343 const std::string& text, |
| 344 const std::string& text, | 344 bool keep_selection, |
| 345 bool keep_selection); | 345 int relative_cursor_pos); |
| 346 void OnExtendSelectionAndDelete(int instance_id, int before, int after); | 346 void OnExtendSelectionAndDelete(int instance_id, int before, int after); |
| 347 void OnImeCancelComposition(); | 347 void OnImeCancelComposition(); |
| 348 #if defined(OS_MACOSX) || defined(USE_AURA) | 348 #if defined(OS_MACOSX) || defined(USE_AURA) |
| 349 void OnImeCompositionRangeChanged( | 349 void OnImeCompositionRangeChanged( |
| 350 const gfx::Range& range, | 350 const gfx::Range& range, |
| 351 const std::vector<gfx::Rect>& character_bounds); | 351 const std::vector<gfx::Rect>& character_bounds); |
| 352 #endif | 352 #endif |
| 353 | 353 |
| 354 // Message handlers for messages from guest. | 354 // Message handlers for messages from guest. |
| 355 void OnHandleInputEventAck( | 355 void OnHandleInputEventAck( |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 449 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 450 // permission. | 450 // permission. |
| 451 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 451 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 452 | 452 |
| 453 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 453 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 454 }; | 454 }; |
| 455 | 455 |
| 456 } // namespace content | 456 } // namespace content |
| 457 | 457 |
| 458 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 458 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |