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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 // Last seen size of guest contents (by SwapCompositorFrame). | 424 // Last seen size of guest contents (by SwapCompositorFrame). |
425 gfx::Size last_seen_view_size_; | 425 gfx::Size last_seen_view_size_; |
426 | 426 |
427 bool is_in_destruction_; | 427 bool is_in_destruction_; |
428 | 428 |
429 // BrowserPluginGuest::Init can only be called once. This flag allows it to | 429 // BrowserPluginGuest::Init can only be called once. This flag allows it to |
430 // exit early if it's already been called. | 430 // exit early if it's already been called. |
431 bool initialized_; | 431 bool initialized_; |
432 | 432 |
433 // Text input type states. | 433 // Text input type states. |
434 ui::TextInputType last_text_input_type_; | 434 // Using scoped_ptr to avoid including the header file: view_messages.h. |
435 ui::TextInputMode last_input_mode_; | 435 scoped_ptr<const ViewHostMsg_TextInputState_Params> last_text_input_state_; |
436 int last_input_flags_; | |
437 bool last_can_compose_inline_; | |
438 | 436 |
439 // The is the routing ID for a swapped out RenderView for the guest | 437 // The is the routing ID for a swapped out RenderView for the guest |
440 // WebContents in the embedder's process. | 438 // WebContents in the embedder's process. |
441 int guest_proxy_routing_id_; | 439 int guest_proxy_routing_id_; |
442 // Last seen state of drag status update. | 440 // Last seen state of drag status update. |
443 blink::WebDragStatus last_drag_status_; | 441 blink::WebDragStatus last_drag_status_; |
444 // Whether or not our embedder has seen a SystemDragEnded() call. | 442 // Whether or not our embedder has seen a SystemDragEnded() call. |
445 bool seen_embedder_system_drag_ended_; | 443 bool seen_embedder_system_drag_ended_; |
446 // Whether or not our embedder has seen a DragSourceEndedAt() call. | 444 // Whether or not our embedder has seen a DragSourceEndedAt() call. |
447 bool seen_embedder_drag_source_ended_at_; | 445 bool seen_embedder_drag_source_ended_at_; |
(...skipping 19 matching lines...) Expand all Loading... |
467 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 465 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
468 // permission. | 466 // permission. |
469 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 467 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
470 | 468 |
471 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 469 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
472 }; | 470 }; |
473 | 471 |
474 } // namespace content | 472 } // namespace content |
475 | 473 |
476 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 474 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |