Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 10735061: Move ExtensionWindowController and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.h ('k') | chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698