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

Side by Side Diff: chrome/browser/devtools/devtools_ui_bindings.cc

Issue 469993006: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 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 "chrome/browser/devtools/devtools_ui_bindings.h" 5 #include "chrome/browser/devtools/devtools_ui_bindings.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/themes/theme_service.h" 23 #include "chrome/browser/themes/theme_service.h"
24 #include "chrome/browser/themes/theme_service_factory.h" 24 #include "chrome/browser/themes/theme_service_factory.h"
25 #include "chrome/browser/ui/browser.h" 25 #include "chrome/browser/ui/browser.h"
26 #include "chrome/browser/ui/browser_iterator.h" 26 #include "chrome/browser/ui/browser_iterator.h"
27 #include "chrome/browser/ui/browser_list.h" 27 #include "chrome/browser/ui/browser_list.h"
28 #include "chrome/browser/ui/browser_window.h" 28 #include "chrome/browser/ui/browser_window.h"
29 #include "chrome/browser/ui/tabs/tab_strip_model.h" 29 #include "chrome/browser/ui/tabs/tab_strip_model.h"
30 #include "chrome/common/chrome_switches.h" 30 #include "chrome/common/chrome_switches.h"
31 #include "chrome/common/extensions/manifest_url_handler.h" 31 #include "chrome/common/extensions/manifest_url_handler.h"
32 #include "chrome/common/url_constants.h" 32 #include "chrome/common/url_constants.h"
33 #include "chrome/grit/generated_resources.h"
33 #include "components/infobars/core/confirm_infobar_delegate.h" 34 #include "components/infobars/core/confirm_infobar_delegate.h"
34 #include "components/infobars/core/infobar.h" 35 #include "components/infobars/core/infobar.h"
35 #include "content/public/browser/favicon_status.h" 36 #include "content/public/browser/favicon_status.h"
36 #include "content/public/browser/invalidate_type.h" 37 #include "content/public/browser/invalidate_type.h"
37 #include "content/public/browser/navigation_controller.h" 38 #include "content/public/browser/navigation_controller.h"
38 #include "content/public/browser/navigation_entry.h" 39 #include "content/public/browser/navigation_entry.h"
39 #include "content/public/browser/notification_source.h" 40 #include "content/public/browser/notification_source.h"
40 #include "content/public/browser/render_frame_host.h" 41 #include "content/public/browser/render_frame_host.h"
41 #include "content/public/browser/render_view_host.h" 42 #include "content/public/browser/render_view_host.h"
42 #include "content/public/browser/user_metrics.h" 43 #include "content/public/browser/user_metrics.h"
43 #include "content/public/browser/web_contents.h" 44 #include "content/public/browser/web_contents.h"
44 #include "content/public/browser/web_contents_observer.h" 45 #include "content/public/browser/web_contents_observer.h"
45 #include "content/public/common/page_transition_types.h" 46 #include "content/public/common/page_transition_types.h"
46 #include "content/public/common/renderer_preferences.h" 47 #include "content/public/common/renderer_preferences.h"
47 #include "content/public/common/url_constants.h" 48 #include "content/public/common/url_constants.h"
48 #include "extensions/browser/extension_system.h" 49 #include "extensions/browser/extension_system.h"
49 #include "extensions/common/extension_set.h" 50 #include "extensions/common/extension_set.h"
50 #include "extensions/common/permissions/permissions_data.h" 51 #include "extensions/common/permissions/permissions_data.h"
51 #include "grit/generated_resources.h"
52 #include "ui/base/l10n/l10n_util.h" 52 #include "ui/base/l10n/l10n_util.h"
53 53
54 using base::DictionaryValue; 54 using base::DictionaryValue;
55 using content::BrowserThread; 55 using content::BrowserThread;
56 56
57 namespace { 57 namespace {
58 58
59 static const char kFrontendHostId[] = "id"; 59 static const char kFrontendHostId[] = "id";
60 static const char kFrontendHostMethod[] = "method"; 60 static const char kFrontendHostMethod[] = "method";
61 static const char kFrontendHostParams[] = "params"; 61 static const char kFrontendHostParams[] = "params";
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 web_contents_->GetMainFrame()->ExecuteJavaScript(javascript); 839 web_contents_->GetMainFrame()->ExecuteJavaScript(javascript);
840 } 840 }
841 841
842 void DevToolsUIBindings::DocumentOnLoadCompletedInMainFrame() { 842 void DevToolsUIBindings::DocumentOnLoadCompletedInMainFrame() {
843 // Call delegate first - it seeds importants bit of information. 843 // Call delegate first - it seeds importants bit of information.
844 delegate_->OnLoadCompleted(); 844 delegate_->OnLoadCompleted();
845 845
846 UpdateTheme(); 846 UpdateTheme();
847 AddDevToolsExtensionsToClient(); 847 AddDevToolsExtensionsToClient();
848 } 848 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_file_helper.cc ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698