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

Side by Side Diff: chrome/browser/debugger/devtools_window.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 21 matching lines...) Expand all
32 #include "content/browser/browsing_instance.h" 32 #include "content/browser/browsing_instance.h"
33 #include "content/browser/debugger/devtools_manager.h" 33 #include "content/browser/debugger/devtools_manager.h"
34 #include "content/browser/in_process_webkit/session_storage_namespace.h" 34 #include "content/browser/in_process_webkit/session_storage_namespace.h"
35 #include "content/browser/load_notification_details.h" 35 #include "content/browser/load_notification_details.h"
36 #include "content/browser/renderer_host/render_view_host.h" 36 #include "content/browser/renderer_host/render_view_host.h"
37 #include "content/browser/tab_contents/navigation_controller.h" 37 #include "content/browser/tab_contents/navigation_controller.h"
38 #include "content/browser/tab_contents/navigation_entry.h" 38 #include "content/browser/tab_contents/navigation_entry.h"
39 #include "content/browser/tab_contents/tab_contents.h" 39 #include "content/browser/tab_contents/tab_contents.h"
40 #include "content/browser/tab_contents/tab_contents_view.h" 40 #include "content/browser/tab_contents/tab_contents_view.h"
41 #include "content/common/devtools_messages.h" 41 #include "content/common/devtools_messages.h"
42 #include "content/common/notification_service.h"
43 #include "content/public/browser/content_browser_client.h" 42 #include "content/public/browser/content_browser_client.h"
43 #include "content/public/browser/notification_source.h"
44 #include "content/public/common/bindings_policy.h" 44 #include "content/public/common/bindings_policy.h"
45 #include "grit/generated_resources.h" 45 #include "grit/generated_resources.h"
46 46
47 const char DevToolsWindow::kDevToolsApp[] = "DevToolsApp"; 47 const char DevToolsWindow::kDevToolsApp[] = "DevToolsApp";
48 48
49 // static 49 // static
50 void DevToolsWindow::RegisterUserPrefs(PrefService* prefs) { 50 void DevToolsWindow::RegisterUserPrefs(PrefService* prefs) {
51 prefs->RegisterBooleanPref(prefs::kDevToolsOpenDocked, 51 prefs->RegisterBooleanPref(prefs::kDevToolsOpenDocked,
52 true, 52 true,
53 PrefService::UNSYNCABLE_PREF); 53 PrefService::UNSYNCABLE_PREF);
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 RequestSetDocked(false); 653 RequestSetDocked(false);
654 } 654 }
655 655
656 content::JavaScriptDialogCreator* DevToolsWindow::GetJavaScriptDialogCreator() { 656 content::JavaScriptDialogCreator* DevToolsWindow::GetJavaScriptDialogCreator() {
657 if (inspected_tab_ && inspected_tab_->tab_contents()->delegate()) { 657 if (inspected_tab_ && inspected_tab_->tab_contents()->delegate()) {
658 return inspected_tab_->tab_contents()->delegate()-> 658 return inspected_tab_->tab_contents()->delegate()->
659 GetJavaScriptDialogCreator(); 659 GetJavaScriptDialogCreator();
660 } 660 }
661 return TabContentsDelegate::GetJavaScriptDialogCreator(); 661 return TabContentsDelegate::GetJavaScriptDialogCreator();
662 } 662 }
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_sanity_unittest.cc ('k') | chrome/browser/download/download_crx_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698