Chromium Code Reviews| Index: chrome/browser/ui/browser.h |
| diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h |
| index 94e33796184012859d94e9493f81ec60cfc0bc10..19422fbe296721c967c1030fe87dcf947359f3d2 100644 |
| --- a/chrome/browser/ui/browser.h |
| +++ b/chrome/browser/ui/browser.h |
| @@ -52,7 +52,9 @@ |
| #include "ui/base/ui_base_types.h" |
| #include "ui/gfx/rect.h" |
| +class BrowserContentSettingBubbleModelDelegate; |
| class BrowserSyncedWindowDelegate; |
| +class BrowserToolbarModelHost; |
| class BrowserTabRestoreServiceDelegate; |
| class BrowserWindow; |
| class Extension; |
| @@ -234,10 +236,14 @@ class Browser : public TabHandlerDelegate, |
| // |window()| will return NULL if called before |CreateBrowserWindow()| |
| // is done. |
| BrowserWindow* window() const { return window_; } |
| - ToolbarModel* toolbar_model() { return &toolbar_model_; } |
| + ToolbarModel* toolbar_model() { return toolbar_model_.get(); } |
| const SessionID& session_id() const { return session_id_; } |
| CommandUpdater* command_updater() { return &command_updater_; } |
| bool block_command_execution() const { return block_command_execution_; } |
| + BrowserContentSettingBubbleModelDelegate* |
| + content_setting_bubble_model_delegate() { |
| + return content_setting_bubble_model_delegate_.get(); |
| + } |
| BrowserTabRestoreServiceDelegate* tab_restore_service_delegate() { |
| return tab_restore_service_delegate_.get(); |
| } |
| @@ -748,8 +754,8 @@ class Browser : public TabHandlerDelegate, |
| static void UpdateTargetURLHelper(content::WebContents* tab, int32 page_id, |
| const GURL& url); |
| - // Calls ExecuteCommandWithDisposition with the given disposition. |
| - void ExecuteCommandWithDisposition(int id, WindowOpenDisposition); |
| + // Calls ExecuteCommandWithDisposition with CURRENT_TAB disposition. |
| + void ExecuteCommand(int id); |
| // Calls ExecuteCommandWithDisposition with the given event flags. |
| void ExecuteCommand(int id, int event_flags); |
| @@ -792,7 +798,8 @@ class Browser : public TabHandlerDelegate, |
| const content::OpenURLParams& params) OVERRIDE; |
| // Overridden from CommandUpdater::CommandUpdaterDelegate: |
| - virtual void ExecuteCommand(int id) OVERRIDE; |
| + virtual void ExecuteCommandWithDisposition( |
| + int id, WindowOpenDisposition disposition) OVERRIDE; |
|
sky
2012/03/12 20:59:19
nit: once you wrap you shouldn't have multiple par
altimofeev
2012/03/13 15:38:05
Done.
|
| // Overridden from TabRestoreServiceObserver: |
| virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE; |
| @@ -1361,7 +1368,7 @@ class Browser : public TabHandlerDelegate, |
| const SessionID session_id_; |
| // The model for the toolbar view. |
| - ToolbarModel toolbar_model_; |
| + scoped_ptr<ToolbarModel> toolbar_model_; |
| // UI update coalescing and handling //////////////////////////////////////// |
| @@ -1455,6 +1462,13 @@ class Browser : public TabHandlerDelegate, |
| // and we install ourselves as an observer. |
| TabRestoreService* tab_restore_service_; |
| + // Helper which implements the ContentSettingBubbleModel interface. |
| + scoped_ptr<BrowserContentSettingBubbleModelDelegate> |
| + content_setting_bubble_model_delegate_; |
| + |
| + // Helper which implements the ToolbarModelHost interface. |
| + scoped_ptr<BrowserToolbarModelHost> toolbar_model_host_; |
| + |
| // Helper which implements the TabRestoreServiceDelegate interface. |
| scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; |