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