| OLD | NEW |
| 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 #import "chrome/browser/ui/cocoa/applescript/tab_applescript.h" | 5 #import "chrome/browser/ui/cocoa/applescript/tab_applescript.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #import "base/memory/scoped_nsobject.h" | 9 #import "base/memory/scoped_nsobject.h" |
| 10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/download/save_package.h" | |
| 13 #include "chrome/browser/sessions/restore_tab_helper.h" | 12 #include "chrome/browser/sessions/restore_tab_helper.h" |
| 14 #include "chrome/browser/sessions/session_id.h" | 13 #include "chrome/browser/sessions/session_id.h" |
| 15 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h" | 14 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h" |
| 16 #include "chrome/browser/ui/download/download_tab_helper.h" | 15 #include "chrome/browser/ui/download/download_tab_helper.h" |
| 17 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 18 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 18 #include "content/browser/download/save_package.h" |
| 19 #include "content/browser/renderer_host/render_view_host.h" | 19 #include "content/browser/renderer_host/render_view_host.h" |
| 20 #include "content/browser/tab_contents/navigation_controller.h" | 20 #include "content/browser/tab_contents/navigation_controller.h" |
| 21 #include "content/browser/tab_contents/navigation_entry.h" | 21 #include "content/browser/tab_contents/navigation_entry.h" |
| 22 #include "content/browser/tab_contents/tab_contents_delegate.h" | 22 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 23 #include "content/common/view_messages.h" | 23 #include "content/common/view_messages.h" |
| 24 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
| 25 | 25 |
| 26 @interface TabAppleScript() | 26 @interface TabAppleScript() |
| 27 @property (nonatomic, copy) NSString* tempURL; | 27 @property (nonatomic, copy) NSString* tempURL; |
| 28 @end | 28 @end |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 string16 script = base::SysNSStringToUTF16( | 302 string16 script = base::SysNSStringToUTF16( |
| 303 [[command evaluatedArguments] objectForKey:@"javascript"]); | 303 [[command evaluatedArguments] objectForKey:@"javascript"]); |
| 304 view->ExecuteJavascriptInWebFrame(string16(), script); | 304 view->ExecuteJavascriptInWebFrame(string16(), script); |
| 305 | 305 |
| 306 // TODO(Shreyas): Figure out a way to get the response back. | 306 // TODO(Shreyas): Figure out a way to get the response back. |
| 307 return nil; | 307 return nil; |
| 308 } | 308 } |
| 309 | 309 |
| 310 @end | 310 @end |
| OLD | NEW |