Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(964)

Side by Side Diff: chrome/browser/ui/cocoa/applescript/tab_applescript.h

Issue 10534093: TabContentsWrapper -> TabContents, part 37. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/applescript/tab_applescript.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 TabContents; 12 class TabContents;
13 typedef TabContents TabContentsWrapper;
14 13
15 // Represents a tab scriptable item in applescript. 14 // Represents a tab scriptable item in applescript.
16 @interface TabAppleScript : ElementAppleScript { 15 @interface TabAppleScript : ElementAppleScript {
17 @private 16 @private
18 TabContentsWrapper* tabContents_; // weak. 17 TabContents* tabContents_; // weak.
19 // Contains the temporary URL when a user creates a new folder/item with 18 // Contains the temporary URL when a user creates a new folder/item with
20 // url specified like 19 // url specified like
21 // |make new tab with properties {url:"http://google.com"}|. 20 // |make new tab with properties {url:"http://google.com"}|.
22 NSString* tempURL_; 21 NSString* tempURL_;
23 } 22 }
24 23
25 // Doesn't actually create the tab here but just assigns the ID, tab is created 24 // Doesn't actually create the tab here but just assigns the ID, tab is created
26 // when it calls insertInTabs: of a particular window, it is used in cases 25 // when it calls insertInTabs: of a particular window, it is used in cases
27 // where user assigns a tab to a variable like |set var to make new tab|. 26 // where user assigns a tab to a variable like |set var to make new tab|.
28 - (id)init; 27 - (id)init;
29 28
30 // Does not create a new tab but uses an existing one. 29 // Does not create a new tab but uses an existing one.
31 - (id)initWithTabContent:(TabContentsWrapper*)aTabContent; 30 - (id)initWithTabContent:(TabContents*)aTabContent;
32 31
33 // Assigns a tab, sets its unique ID and also copies temporary values. 32 // Assigns a tab, sets its unique ID and also copies temporary values.
34 - (void)setTabContent:(TabContentsWrapper*)aTabContent; 33 - (void)setTabContent:(TabContents*)aTabContent;
35 34
36 // Return the URL currently visible to the user in the location bar. 35 // Return the URL currently visible to the user in the location bar.
37 - (NSString*)URL; 36 - (NSString*)URL;
38 37
39 // Sets the URL, returns an error if it is invalid. 38 // Sets the URL, returns an error if it is invalid.
40 - (void)setURL:(NSString*)aURL; 39 - (void)setURL:(NSString*)aURL;
41 40
42 // The title of the tab. 41 // The title of the tab.
43 - (NSString*)title; 42 - (NSString*)title;
44 43
(...skipping 29 matching lines...) Expand all
74 73
75 // Displays the HTML of the tab in a new tab. 74 // Displays the HTML of the tab in a new tab.
76 - (void)handlesViewSourceScriptCommand:(NSScriptCommand*)command; 75 - (void)handlesViewSourceScriptCommand:(NSScriptCommand*)command;
77 76
78 // Executes a piece of javascript in the tab. 77 // Executes a piece of javascript in the tab.
79 - (id)handlesExecuteJavascriptScriptCommand:(NSScriptCommand*)command; 78 - (id)handlesExecuteJavascriptScriptCommand:(NSScriptCommand*)command;
80 79
81 @end 80 @end
82 81
83 #endif// CHROME_BROWSER_UI_COCOA_APPLESCRIPT_TAB_APPLESCRIPT_H_ 82 #endif// CHROME_BROWSER_UI_COCOA_APPLESCRIPT_TAB_APPLESCRIPT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/applescript/tab_applescript.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698