| 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 #import "chrome/browser/ui/cocoa/applescript/tab_applescript.h" | 5 #import "chrome/browser/ui/cocoa/applescript/tab_applescript.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| 11 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
| 12 #include "chrome/browser/printing/print_view_manager.h" | 12 #include "chrome/browser/printing/print_view_manager.h" |
| 13 #include "chrome/browser/sessions/session_tab_helper.h" | 13 #include "chrome/browser/sessions/session_tab_helper.h" |
| 14 #include "chrome/browser/ui/cocoa/applescript/apple_event_util.h" | 14 #include "chrome/browser/ui/cocoa/applescript/apple_event_util.h" |
| 15 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h" | 15 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h" |
| 16 #include "chrome/browser/ui/cocoa/applescript/metrics_applescript.h" | 16 #include "chrome/browser/ui/cocoa/applescript/metrics_applescript.h" |
| 17 #include "chrome/common/chrome_isolated_world_ids.h" | 17 #include "chrome/common/chrome_isolated_world_ids.h" |
| 18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 19 #include "components/sessions/session_id.h" | 19 #include "components/sessions/core/session_id.h" |
| 20 #include "content/public/browser/navigation_controller.h" | 20 #include "content/public/browser/navigation_controller.h" |
| 21 #include "content/public/browser/navigation_entry.h" | 21 #include "content/public/browser/navigation_entry.h" |
| 22 #include "content/public/browser/render_frame_host.h" | 22 #include "content/public/browser/render_frame_host.h" |
| 23 #include "content/public/browser/render_view_host.h" | 23 #include "content/public/browser/render_view_host.h" |
| 24 #include "content/public/browser/save_page_type.h" | 24 #include "content/public/browser/save_page_type.h" |
| 25 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
| 26 #include "content/public/browser/web_contents_delegate.h" | 26 #include "content/public/browser/web_contents_delegate.h" |
| 27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 28 | 28 |
| 29 using content::NavigationController; | 29 using content::NavigationController; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 base::string16 script = base::SysNSStringToUTF16( | 309 base::string16 script = base::SysNSStringToUTF16( |
| 310 [[command evaluatedArguments] objectForKey:@"javascript"]); | 310 [[command evaluatedArguments] objectForKey:@"javascript"]); |
| 311 frame->ExecuteJavaScriptInIsolatedWorld( | 311 frame->ExecuteJavaScriptInIsolatedWorld( |
| 312 script, callback, chrome::ISOLATED_WORLD_ID_APPLESCRIPT); | 312 script, callback, chrome::ISOLATED_WORLD_ID_APPLESCRIPT); |
| 313 | 313 |
| 314 return nil; | 314 return nil; |
| 315 } | 315 } |
| 316 | 316 |
| 317 @end | 317 @end |
| OLD | NEW |