| 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 "chrome/browser/ui/extensions/shell_window.h" | 5 #include "chrome/browser/ui/extensions/shell_window.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/extensions/extension_process_manager.h" | 8 #include "chrome/browser/extensions/extension_process_manager.h" |
| 9 #include "chrome/browser/extensions/shell_window_registry.h" | 9 #include "chrome/browser/extensions/shell_window_registry.h" |
| 10 #include "chrome/browser/file_select_helper.h" | 10 #include "chrome/browser/file_select_helper.h" |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 break; | 336 break; |
| 337 } | 337 } |
| 338 case content::NOTIFICATION_APP_TERMINATING: | 338 case content::NOTIFICATION_APP_TERMINATING: |
| 339 Close(); | 339 Close(); |
| 340 break; | 340 break; |
| 341 default: | 341 default: |
| 342 NOTREACHED() << "Received unexpected notification"; | 342 NOTREACHED() << "Received unexpected notification"; |
| 343 } | 343 } |
| 344 } | 344 } |
| 345 | 345 |
| 346 ExtensionWindowController* ShellWindow::GetExtensionWindowController() const { | 346 extensions::WindowController* |
| 347 ShellWindow::GetExtensionWindowController() const { |
| 347 return NULL; | 348 return NULL; |
| 348 } | 349 } |
| 349 | 350 |
| 350 void ShellWindow::OnRequest(const ExtensionHostMsg_Request_Params& params) { | 351 void ShellWindow::OnRequest(const ExtensionHostMsg_Request_Params& params) { |
| 351 extension_function_dispatcher_.Dispatch(params, | 352 extension_function_dispatcher_.Dispatch(params, |
| 352 web_contents_->GetRenderViewHost()); | 353 web_contents_->GetRenderViewHost()); |
| 353 } | 354 } |
| 354 | 355 |
| 355 void ShellWindow::AddMessageToDevToolsConsole(ConsoleMessageLevel level, | 356 void ShellWindow::AddMessageToDevToolsConsole(ConsoleMessageLevel level, |
| 356 const std::string& message) { | 357 const std::string& message) { |
| 357 content::RenderViewHost* rvh = web_contents_->GetRenderViewHost(); | 358 content::RenderViewHost* rvh = web_contents_->GetRenderViewHost(); |
| 358 rvh->Send(new ExtensionMsg_AddMessageToConsole( | 359 rvh->Send(new ExtensionMsg_AddMessageToConsole( |
| 359 rvh->GetRoutingID(), level, message)); | 360 rvh->GetRoutingID(), level, message)); |
| 360 } | 361 } |
| OLD | NEW |