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

Side by Side Diff: chrome/browser/cocoa/tab_contents_controller.h

Issue 402091: Fix tab focus/blur events on tab switch on the Mac (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/cocoa/tab_contents_controller.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COCOA_TAB_CONTENTS_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_H_
7 7
8 #include <Cocoa/Cocoa.h> 8 #include <Cocoa/Cocoa.h>
9 9
10 class TabContents; 10 class TabContents;
(...skipping 13 matching lines...) Expand all
24 TabContents* contents_; // weak 24 TabContents* contents_; // weak
25 25
26 IBOutlet NSBox* contentsBox_; 26 IBOutlet NSBox* contentsBox_;
27 } 27 }
28 28
29 // Create the contents of a tab represented by |contents| and loaded from the 29 // Create the contents of a tab represented by |contents| and loaded from the
30 // nib given by |name|. 30 // nib given by |name|.
31 - (id)initWithNibName:(NSString*)name 31 - (id)initWithNibName:(NSString*)name
32 contents:(TabContents*)contents; 32 contents:(TabContents*)contents;
33 33
34 // Called when the tab contents is the currently selected tab and is about to be
35 // removed from the view hierarchy.
36 - (void)willBecomeUnselectedTab;
37
34 // Called when the tab contents is about to be put into the view hierarchy as 38 // Called when the tab contents is about to be put into the view hierarchy as
35 // the selected tab. Handles things such as ensuring the toolbar is correctly 39 // the selected tab. Handles things such as ensuring the toolbar is correctly
36 // enabled. 40 // enabled.
37 - (void)willBecomeSelectedTab; 41 - (void)willBecomeSelectedTab;
38 42
39 // Call when the tab view is properly sized and the render widget host view 43 // Call when the tab view is properly sized and the render widget host view
40 // should be put into the view hierarchy. 44 // should be put into the view hierarchy.
41 - (void)ensureContentsVisible; 45 - (void)ensureContentsVisible;
42 46
43 // Called when the tab contents is updated in some non-descript way (the 47 // Called when the tab contents is updated in some non-descript way (the
44 // notification from the model isn't specific). |updatedContents| could reflect 48 // notification from the model isn't specific). |updatedContents| could reflect
45 // an entirely new tab contents object. 49 // an entirely new tab contents object.
46 - (void)tabDidChange:(TabContents*)updatedContents; 50 - (void)tabDidChange:(TabContents*)updatedContents;
47 51
48 @end 52 @end
49 53
50 #endif // CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_H_ 54 #endif // CHROME_BROWSER_COCOA_TAB_CONTENTS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_contents_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698