| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/guest_view/web_view/web_view_guest.h" | 5 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 return "normal"; | 127 return "normal"; |
| 128 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: | 128 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: |
| 129 case base::TERMINATION_STATUS_STILL_RUNNING: | 129 case base::TERMINATION_STATUS_STILL_RUNNING: |
| 130 return "abnormal"; | 130 return "abnormal"; |
| 131 #if defined(OS_CHROMEOS) | 131 #if defined(OS_CHROMEOS) |
| 132 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: | 132 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: |
| 133 return "oom killed"; | 133 return "oom killed"; |
| 134 #endif | 134 #endif |
| 135 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: | 135 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: |
| 136 return "killed"; | 136 return "killed"; |
| 137 #if defined(OS_ANDROID) | |
| 138 case base::TERMINATION_STATUS_OOM_PROTECTED: | |
| 139 #endif | |
| 140 case base::TERMINATION_STATUS_PROCESS_CRASHED: | 137 case base::TERMINATION_STATUS_PROCESS_CRASHED: |
| 141 return "crashed"; | 138 return "crashed"; |
| 142 case base::TERMINATION_STATUS_LAUNCH_FAILED: | 139 case base::TERMINATION_STATUS_LAUNCH_FAILED: |
| 143 return "failed to launch"; | 140 return "failed to launch"; |
| 144 case base::TERMINATION_STATUS_MAX_ENUM: | 141 case base::TERMINATION_STATUS_MAX_ENUM: |
| 145 break; | 142 break; |
| 146 } | 143 } |
| 147 NOTREACHED() << "Unknown Termination Status."; | 144 NOTREACHED() << "Unknown Termination Status."; |
| 148 return "unknown"; | 145 return "unknown"; |
| 149 } | 146 } |
| (...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue()); | 1497 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue()); |
| 1501 DispatchEventToView( | 1498 DispatchEventToView( |
| 1502 new GuestViewEvent(webview::kEventExitFullscreen, std::move(args))); | 1499 new GuestViewEvent(webview::kEventExitFullscreen, std::move(args))); |
| 1503 } | 1500 } |
| 1504 // Since we changed fullscreen state, sending a Resize message ensures that | 1501 // Since we changed fullscreen state, sending a Resize message ensures that |
| 1505 // renderer/ sees the change. | 1502 // renderer/ sees the change. |
| 1506 web_contents()->GetRenderViewHost()->GetWidget()->WasResized(); | 1503 web_contents()->GetRenderViewHost()->GetWidget()->WasResized(); |
| 1507 } | 1504 } |
| 1508 | 1505 |
| 1509 } // namespace extensions | 1506 } // namespace extensions |
| OLD | NEW |