| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual void UpdateToolbar(TabContents* contents, | 59 virtual void UpdateToolbar(TabContents* contents, |
| 60 bool should_restore_state); | 60 bool should_restore_state); |
| 61 virtual void FocusToolbar(); | 61 virtual void FocusToolbar(); |
| 62 virtual void FocusAppMenu(); | 62 virtual void FocusAppMenu(); |
| 63 virtual void FocusBookmarksToolbar(); | 63 virtual void FocusBookmarksToolbar(); |
| 64 virtual void FocusChromeOSStatus(); | 64 virtual void FocusChromeOSStatus(); |
| 65 virtual void RotatePaneFocus(bool forwards); | 65 virtual void RotatePaneFocus(bool forwards); |
| 66 virtual bool IsBookmarkBarVisible() const; | 66 virtual bool IsBookmarkBarVisible() const; |
| 67 virtual bool IsBookmarkBarAnimating() const; | 67 virtual bool IsBookmarkBarAnimating() const; |
| 68 virtual bool IsToolbarVisible() const; | 68 virtual bool IsToolbarVisible() const; |
| 69 virtual gfx::Rect GetRootWindowResizerRect() const; | |
| 70 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, | 69 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, |
| 71 Profile* profile); | 70 Profile* profile); |
| 72 virtual void ToggleBookmarkBar(); | 71 virtual void ToggleBookmarkBar(); |
| 73 virtual views::Window* ShowAboutChromeDialog(); | 72 virtual views::Window* ShowAboutChromeDialog(); |
| 74 virtual void ShowUpdateChromeDialog(); | 73 virtual void ShowUpdateChromeDialog(); |
| 75 virtual void ShowTaskManager(); | 74 virtual void ShowTaskManager(); |
| 76 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); | 75 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); |
| 77 virtual bool IsDownloadShelfVisible() const; | 76 virtual bool IsDownloadShelfVisible() const; |
| 78 virtual DownloadShelf* GetDownloadShelf(); | 77 virtual DownloadShelf* GetDownloadShelf(); |
| 79 virtual void ShowReportBugDialog(); | 78 virtual void ShowReportBugDialog(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void UpdateSidebarForContents(TabContents* tab_contents); | 131 void UpdateSidebarForContents(TabContents* tab_contents); |
| 133 | 132 |
| 134 NotificationRegistrar registrar_; | 133 NotificationRegistrar registrar_; |
| 135 Browser* browser_; // weak, owned by controller | 134 Browser* browser_; // weak, owned by controller |
| 136 BrowserWindowController* controller_; // weak, owns us | 135 BrowserWindowController* controller_; // weak, owns us |
| 137 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; | 136 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; |
| 138 scoped_nsobject<NSString> pending_window_title_; | 137 scoped_nsobject<NSString> pending_window_title_; |
| 139 }; | 138 }; |
| 140 | 139 |
| 141 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ | 140 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |