| OLD | NEW |
| 1 // Copyright (c) 2010 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 "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h" | 5 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h" |
| 6 | 6 |
| 7 #include "app/gfx/font_util.h" | 7 #include "app/gfx/font_util.h" |
| 8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
| 9 #include "base/singleton.h" | 9 #include "base/singleton.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/printing/cloud_print/cloud_print_setup_source.h" | 24 #include "chrome/browser/printing/cloud_print/cloud_print_setup_source.h" |
| 25 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" | 25 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" |
| 26 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
| 27 #include "chrome/browser/renderer_host/render_view_host.h" | 27 #include "chrome/browser/renderer_host/render_view_host.h" |
| 28 #include "chrome/browser/service/service_process_control.h" | 28 #include "chrome/browser/service/service_process_control.h" |
| 29 #include "chrome/browser/service/service_process_control_manager.h" | 29 #include "chrome/browser/service/service_process_control_manager.h" |
| 30 #include "chrome/browser/tab_contents/tab_contents.h" | 30 #include "chrome/browser/tab_contents/tab_contents.h" |
| 31 #include "chrome/browser/ui/browser.h" | 31 #include "chrome/browser/ui/browser.h" |
| 32 #include "chrome/browser/ui/browser_window.h" | 32 #include "chrome/browser/ui/browser_window.h" |
| 33 #if defined(TOOLKIT_VIEWS) | 33 #if defined(TOOLKIT_VIEWS) |
| 34 #include "chrome/browser/views/browser_dialogs.h" | 34 #include "chrome/browser/ui/views/browser_dialogs.h" |
| 35 #endif // defined(TOOLKIT_GTK) | 35 #endif // defined(TOOLKIT_GTK) |
| 36 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" | 36 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" |
| 37 #include "chrome/common/net/gaia/gaia_constants.h" | 37 #include "chrome/common/net/gaia/gaia_constants.h" |
| 38 #include "chrome/common/net/gaia/google_service_auth_error.h" | 38 #include "chrome/common/net/gaia/google_service_auth_error.h" |
| 39 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" |
| 40 #include "chrome/common/service_messages.h" | 40 #include "chrome/common/service_messages.h" |
| 41 #include "gfx/font.h" | 41 #include "gfx/font.h" |
| 42 | 42 |
| 43 #include "grit/chromium_strings.h" | 43 #include "grit/chromium_strings.h" |
| 44 #include "grit/locale_settings.h" | 44 #include "grit/locale_settings.h" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 } | 299 } |
| 300 | 300 |
| 301 void CloudPrintSetupFlow::ExecuteJavascriptInIFrame( | 301 void CloudPrintSetupFlow::ExecuteJavascriptInIFrame( |
| 302 const std::wstring& iframe_xpath, | 302 const std::wstring& iframe_xpath, |
| 303 const std::wstring& js) { | 303 const std::wstring& js) { |
| 304 if (dom_ui_) { | 304 if (dom_ui_) { |
| 305 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host(); | 305 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host(); |
| 306 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); | 306 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); |
| 307 } | 307 } |
| 308 } | 308 } |
| OLD | NEW |