diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 01:18:13 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 01:18:13 +0000 |
commit | f6314009810a5ee6c606328c41c8ff4e1dacd05e (patch) | |
tree | 3c530eb3c209f23e369f0a8f35849a94e502cbc8 /chrome/browser/cocoa/browser_window_cocoa.h | |
parent | ec85e6880806202737a4d32c94817f0ecad4ca8b (diff) | |
download | chromium_src-f6314009810a5ee6c606328c41c8ff4e1dacd05e.zip chromium_src-f6314009810a5ee6c606328c41c8ff4e1dacd05e.tar.gz chromium_src-f6314009810a5ee6c606328c41c8ff4e1dacd05e.tar.bz2 |
Fix problem with bookmark bar introduced by window sharing; pref
change needs to change all open windows with the same preferences,
not just the current one).
Improve unit testing.
Limit bookmark menu size width (1st pass).
Cleanup/delete of code which no longer does much.
Review URL: http://codereview.chromium.org/79068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_cocoa.h')
-rw-r--r-- | chrome/browser/cocoa/browser_window_cocoa.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/browser_window_cocoa.h b/chrome/browser/cocoa/browser_window_cocoa.h index 355884f..661dca3 100644 --- a/chrome/browser/cocoa/browser_window_cocoa.h +++ b/chrome/browser/cocoa/browser_window_cocoa.h @@ -18,7 +18,8 @@ class Browser; // the Cocoa NSWindow. Cross-platform code will interact with this object when // it needs to manipulate the window. -class BrowserWindowCocoa : public BrowserWindow { +class BrowserWindowCocoa : public BrowserWindow, + public NotificationObserver { public: BrowserWindowCocoa(Browser* browser, BrowserWindowController* controller, @@ -66,6 +67,11 @@ class BrowserWindowCocoa : public BrowserWindow { virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, void* parent_window); + // Overridden from NotificationObserver + virtual void Observe(NotificationType type, + const NotificationSource& source, + const NotificationDetails& details); + // Adds the given FindBar cocoa controller to this browser window. void AddFindBar(FindBarCocoaController* find_bar_cocoa_controller); |