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 switch (status) { | 127 switch (status) { |
128 case base::TERMINATION_STATUS_NORMAL_TERMINATION: | 128 case base::TERMINATION_STATUS_NORMAL_TERMINATION: |
129 return "normal"; | 129 return "normal"; |
130 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: | 130 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: |
131 case base::TERMINATION_STATUS_STILL_RUNNING: | 131 case base::TERMINATION_STATUS_STILL_RUNNING: |
132 return "abnormal"; | 132 return "abnormal"; |
133 #if defined(OS_CHROMEOS) | 133 #if defined(OS_CHROMEOS) |
134 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: | 134 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: |
135 return "oom killed"; | 135 return "oom killed"; |
136 #endif | 136 #endif |
| 137 case base::TERMINATION_STATUS_OOM: |
| 138 return "oom"; |
137 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: | 139 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: |
138 return "killed"; | 140 return "killed"; |
139 case base::TERMINATION_STATUS_PROCESS_CRASHED: | 141 case base::TERMINATION_STATUS_PROCESS_CRASHED: |
140 return "crashed"; | 142 return "crashed"; |
141 case base::TERMINATION_STATUS_LAUNCH_FAILED: | 143 case base::TERMINATION_STATUS_LAUNCH_FAILED: |
142 return "failed to launch"; | 144 return "failed to launch"; |
143 case base::TERMINATION_STATUS_MAX_ENUM: | 145 case base::TERMINATION_STATUS_MAX_ENUM: |
144 break; | 146 break; |
145 } | 147 } |
146 NOTREACHED() << "Unknown Termination Status."; | 148 NOTREACHED() << "Unknown Termination Status."; |
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 std::unique_ptr<base::DictionaryValue> args(new base::DictionaryValue()); | 1499 std::unique_ptr<base::DictionaryValue> args(new base::DictionaryValue()); |
1498 DispatchEventToView(base::WrapUnique( | 1500 DispatchEventToView(base::WrapUnique( |
1499 new GuestViewEvent(webview::kEventExitFullscreen, std::move(args)))); | 1501 new GuestViewEvent(webview::kEventExitFullscreen, std::move(args)))); |
1500 } | 1502 } |
1501 // Since we changed fullscreen state, sending a Resize message ensures that | 1503 // Since we changed fullscreen state, sending a Resize message ensures that |
1502 // renderer/ sees the change. | 1504 // renderer/ sees the change. |
1503 web_contents()->GetRenderViewHost()->GetWidget()->WasResized(); | 1505 web_contents()->GetRenderViewHost()->GetWidget()->WasResized(); |
1504 } | 1506 } |
1505 | 1507 |
1506 } // namespace extensions | 1508 } // namespace extensions |
OLD | NEW |