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 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 5 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/pickle.h" | 10 #include "base/pickle.h" |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 break; | 452 break; |
453 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: | 453 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: |
454 RecordAction( | 454 RecordAction( |
455 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath")); | 455 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath")); |
456 break; | 456 break; |
457 default: | 457 default: |
458 break; | 458 break; |
459 } | 459 } |
460 } | 460 } |
461 | 461 |
| 462 void BrowserPluginGuest::DocumentOnLoadCompletedInMainFrame() { |
| 463 delegate_->DocumentOnLoadCompleted(guest_proxy_routing_id_); |
| 464 } |
| 465 |
462 // static | 466 // static |
463 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest( | 467 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest( |
464 const IPC::Message& message) { | 468 const IPC::Message& message) { |
465 switch (message.type()) { | 469 switch (message.type()) { |
466 case BrowserPluginHostMsg_CompositorFrameSwappedACK::ID: | 470 case BrowserPluginHostMsg_CompositorFrameSwappedACK::ID: |
467 case BrowserPluginHostMsg_Detach::ID: | 471 case BrowserPluginHostMsg_Detach::ID: |
468 case BrowserPluginHostMsg_DragStatusUpdate::ID: | 472 case BrowserPluginHostMsg_DragStatusUpdate::ID: |
469 case BrowserPluginHostMsg_ExecuteEditCommand::ID: | 473 case BrowserPluginHostMsg_ExecuteEditCommand::ID: |
470 case BrowserPluginHostMsg_ExtendSelectionAndDelete::ID: | 474 case BrowserPluginHostMsg_ExtendSelectionAndDelete::ID: |
471 case BrowserPluginHostMsg_HandleInputEvent::ID: | 475 case BrowserPluginHostMsg_HandleInputEvent::ID: |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 void BrowserPluginGuest::OnImeCompositionRangeChanged( | 850 void BrowserPluginGuest::OnImeCompositionRangeChanged( |
847 const gfx::Range& range, | 851 const gfx::Range& range, |
848 const std::vector<gfx::Rect>& character_bounds) { | 852 const std::vector<gfx::Rect>& character_bounds) { |
849 static_cast<RenderWidgetHostViewBase*>( | 853 static_cast<RenderWidgetHostViewBase*>( |
850 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( | 854 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( |
851 range, character_bounds); | 855 range, character_bounds); |
852 } | 856 } |
853 #endif | 857 #endif |
854 | 858 |
855 } // namespace content | 859 } // namespace content |
OLD | NEW |