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/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 case base::TERMINATION_STATUS_PROCESS_CRASHED: | 475 case base::TERMINATION_STATUS_PROCESS_CRASHED: |
476 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Crashed")); | 476 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Crashed")); |
477 break; | 477 break; |
478 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: | 478 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: |
479 RecordAction( | 479 RecordAction( |
480 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath")); | 480 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath")); |
481 break; | 481 break; |
482 default: | 482 default: |
483 break; | 483 break; |
484 } | 484 } |
485 if (delegate_) | |
486 delegate_->GuestProcessGone(status); | |
487 } | 485 } |
488 | 486 |
489 // static | 487 // static |
490 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest( | 488 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest( |
491 const IPC::Message& message) { | 489 const IPC::Message& message) { |
492 switch (message.type()) { | 490 switch (message.type()) { |
493 case BrowserPluginHostMsg_CompositorFrameSwappedACK::ID: | 491 case BrowserPluginHostMsg_CompositorFrameSwappedACK::ID: |
494 case BrowserPluginHostMsg_CopyFromCompositingSurfaceAck::ID: | 492 case BrowserPluginHostMsg_CopyFromCompositingSurfaceAck::ID: |
495 case BrowserPluginHostMsg_DragStatusUpdate::ID: | 493 case BrowserPluginHostMsg_DragStatusUpdate::ID: |
496 case BrowserPluginHostMsg_ExecuteEditCommand::ID: | 494 case BrowserPluginHostMsg_ExecuteEditCommand::ID: |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 void BrowserPluginGuest::OnImeCompositionRangeChanged( | 969 void BrowserPluginGuest::OnImeCompositionRangeChanged( |
972 const gfx::Range& range, | 970 const gfx::Range& range, |
973 const std::vector<gfx::Rect>& character_bounds) { | 971 const std::vector<gfx::Rect>& character_bounds) { |
974 static_cast<RenderWidgetHostViewBase*>( | 972 static_cast<RenderWidgetHostViewBase*>( |
975 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( | 973 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( |
976 range, character_bounds); | 974 range, character_bounds); |
977 } | 975 } |
978 #endif | 976 #endif |
979 | 977 |
980 } // namespace content | 978 } // namespace content |
OLD | NEW |