| 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 #ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_TAB_APPLESCRIPT_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_TAB_APPLESCRIPT_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_TAB_APPLESCRIPT_H_ | 6 #define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_TAB_APPLESCRIPT_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #import "chrome/browser/ui/cocoa/applescript/element_applescript.h" | 10 #import "chrome/browser/ui/cocoa/applescript/element_applescript.h" |
| 11 | 11 |
| 12 class TabContentsWrapper; | 12 class TabContents; |
| 13 typedef TabContents TabContentsWrapper; |
| 13 | 14 |
| 14 // Represents a tab scriptable item in applescript. | 15 // Represents a tab scriptable item in applescript. |
| 15 @interface TabAppleScript : ElementAppleScript { | 16 @interface TabAppleScript : ElementAppleScript { |
| 16 @private | 17 @private |
| 17 TabContentsWrapper* tabContents_; // weak. | 18 TabContentsWrapper* tabContents_; // weak. |
| 18 // Contains the temporary URL when a user creates a new folder/item with | 19 // Contains the temporary URL when a user creates a new folder/item with |
| 19 // url specified like | 20 // url specified like |
| 20 // |make new tab with properties {url:"http://google.com"}|. | 21 // |make new tab with properties {url:"http://google.com"}|. |
| 21 NSString* tempURL_; | 22 NSString* tempURL_; |
| 22 } | 23 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 74 |
| 74 // Displays the HTML of the tab in a new tab. | 75 // Displays the HTML of the tab in a new tab. |
| 75 - (void)handlesViewSourceScriptCommand:(NSScriptCommand*)command; | 76 - (void)handlesViewSourceScriptCommand:(NSScriptCommand*)command; |
| 76 | 77 |
| 77 // Executes a piece of javascript in the tab. | 78 // Executes a piece of javascript in the tab. |
| 78 - (id)handlesExecuteJavascriptScriptCommand:(NSScriptCommand*)command; | 79 - (id)handlesExecuteJavascriptScriptCommand:(NSScriptCommand*)command; |
| 79 | 80 |
| 80 @end | 81 @end |
| 81 | 82 |
| 82 #endif// CHROME_BROWSER_UI_COCOA_APPLESCRIPT_TAB_APPLESCRIPT_H_ | 83 #endif// CHROME_BROWSER_UI_COCOA_APPLESCRIPT_TAB_APPLESCRIPT_H_ |
| OLD | NEW |