| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/scoped_nsobject.h" | 9 #import "base/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" | 12 #include "chrome/browser/download/save_package.h" |
| 13 #include "chrome/browser/renderer_host/render_view_host.h" | |
| 14 #include "chrome/browser/sessions/session_id.h" | 13 #include "chrome/browser/sessions/session_id.h" |
| 15 #include "chrome/browser/tab_contents/navigation_controller.h" | |
| 16 #include "chrome/browser/tab_contents/navigation_entry.h" | |
| 17 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 18 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h" | 14 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h" |
| 19 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "content/browser/renderer_host/render_view_host.h" |
| 17 #include "content/browser/tab_contents/navigation_controller.h" |
| 18 #include "content/browser/tab_contents/navigation_entry.h" |
| 19 #include "content/browser/tab_contents/tab_contents.h" |
| 20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
| 21 | 21 |
| 22 @interface TabAppleScript() | 22 @interface TabAppleScript() |
| 23 @property (nonatomic, copy) NSString* tempURL; | 23 @property (nonatomic, copy) NSString* tempURL; |
| 24 @end | 24 @end |
| 25 | 25 |
| 26 @implementation TabAppleScript | 26 @implementation TabAppleScript |
| 27 | 27 |
| 28 @synthesize tempURL = tempURL_; | 28 @synthesize tempURL = tempURL_; |
| 29 | 29 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 string16 script = base::SysNSStringToUTF16( | 288 string16 script = base::SysNSStringToUTF16( |
| 289 [[command evaluatedArguments] objectForKey:@"javascript"]); | 289 [[command evaluatedArguments] objectForKey:@"javascript"]); |
| 290 view->ExecuteJavascriptInWebFrame(string16(), script); | 290 view->ExecuteJavascriptInWebFrame(string16(), script); |
| 291 | 291 |
| 292 // TODO(Shreyas): Figure out a way to get the response back. | 292 // TODO(Shreyas): Figure out a way to get the response back. |
| 293 return nil; | 293 return nil; |
| 294 } | 294 } |
| 295 | 295 |
| 296 @end | 296 @end |
| OLD | NEW |