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_id.h" | |
14 #include "chrome/browser/sessions/session_tab_helper.h" | 13 #include "chrome/browser/sessions/session_tab_helper.h" |
15 #include "chrome/browser/ui/cocoa/applescript/apple_event_util.h" | 14 #include "chrome/browser/ui/cocoa/applescript/apple_event_util.h" |
16 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h" | 15 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h" |
17 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
| 17 #include "components/sessions/session_id.h" |
18 #include "content/public/browser/navigation_controller.h" | 18 #include "content/public/browser/navigation_controller.h" |
19 #include "content/public/browser/navigation_entry.h" | 19 #include "content/public/browser/navigation_entry.h" |
20 #include "content/public/browser/render_frame_host.h" | 20 #include "content/public/browser/render_frame_host.h" |
21 #include "content/public/browser/render_view_host.h" | 21 #include "content/public/browser/render_view_host.h" |
22 #include "content/public/browser/save_page_type.h" | 22 #include "content/public/browser/save_page_type.h" |
23 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
24 #include "content/public/browser/web_contents_delegate.h" | 24 #include "content/public/browser/web_contents_delegate.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
27 using content::NavigationController; | 27 using content::NavigationController; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 base::Bind(&ResumeAppleEventAndSendReply, suspensionID); | 294 base::Bind(&ResumeAppleEventAndSendReply, suspensionID); |
295 | 295 |
296 base::string16 script = base::SysNSStringToUTF16( | 296 base::string16 script = base::SysNSStringToUTF16( |
297 [[command evaluatedArguments] objectForKey:@"javascript"]); | 297 [[command evaluatedArguments] objectForKey:@"javascript"]); |
298 frame->ExecuteJavaScript(script, callback); | 298 frame->ExecuteJavaScript(script, callback); |
299 | 299 |
300 return nil; | 300 return nil; |
301 } | 301 } |
302 | 302 |
303 @end | 303 @end |
OLD | NEW |