| OLD | NEW |
| 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_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_WINDOW_COCOA_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/browser_window.h" | 8 #include "chrome/browser/browser_window.h" |
| 9 | 9 |
| 10 @class BrowserWindowController; | 10 @class BrowserWindowController; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // Overridden from BrowserWindow | 22 // Overridden from BrowserWindow |
| 23 virtual void Init(); | 23 virtual void Init(); |
| 24 virtual void Show(); | 24 virtual void Show(); |
| 25 virtual void SetBounds(const gfx::Rect& bounds); | 25 virtual void SetBounds(const gfx::Rect& bounds); |
| 26 virtual void Close(); | 26 virtual void Close(); |
| 27 virtual void Activate(); | 27 virtual void Activate(); |
| 28 virtual void FlashFrame(); | 28 virtual void FlashFrame(); |
| 29 virtual void* GetNativeHandle(); | 29 virtual void* GetNativeHandle(); |
| 30 virtual BrowserWindowTesting* GetBrowserWindowTesting(); | 30 virtual BrowserWindowTesting* GetBrowserWindowTesting(); |
| 31 virtual TabStrip* GetTabStrip() const; | |
| 32 virtual StatusBubble* GetStatusBubble(); | 31 virtual StatusBubble* GetStatusBubble(); |
| 33 virtual void SelectedTabToolbarSizeChanged(bool is_animating); | 32 virtual void SelectedTabToolbarSizeChanged(bool is_animating); |
| 34 virtual void UpdateTitleBar(); | 33 virtual void UpdateTitleBar(); |
| 35 virtual void UpdateLoadingAnimations(bool should_animate); | 34 virtual void UpdateLoadingAnimations(bool should_animate); |
| 35 virtual void SetStarredState(bool is_starred); |
| 36 virtual gfx::Rect GetNormalBounds() const; | 36 virtual gfx::Rect GetNormalBounds() const; |
| 37 virtual bool IsMaximized(); | 37 virtual bool IsMaximized(); |
| 38 virtual ToolbarStarToggle* GetStarButton() const; | 38 virtual ToolbarStarToggle* GetStarButton() const; |
| 39 virtual LocationBarView* GetLocationBarView() const; | 39 virtual LocationBarView* GetLocationBarView() const; |
| 40 virtual GoButton* GetGoButton() const; | |
| 41 virtual BookmarkBarView* GetBookmarkBarView(); | 40 virtual BookmarkBarView* GetBookmarkBarView(); |
| 41 virtual void UpdateStopGoState(bool is_loading); |
| 42 virtual void UpdateToolbar(TabContents* contents, | 42 virtual void UpdateToolbar(TabContents* contents, |
| 43 bool should_restore_state); | 43 bool should_restore_state); |
| 44 virtual void FocusToolbar(); | 44 virtual void FocusToolbar(); |
| 45 virtual bool IsBookmarkBarVisible() const; | 45 virtual bool IsBookmarkBarVisible() const; |
| 46 virtual void ToggleBookmarkBar(); | 46 virtual void ToggleBookmarkBar(); |
| 47 virtual void ShowAboutChromeDialog(); | 47 virtual void ShowAboutChromeDialog(); |
| 48 virtual void ShowBookmarkManager(); | 48 virtual void ShowBookmarkManager(); |
| 49 virtual bool IsBookmarkBubbleVisible() const; |
| 50 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); |
| 49 virtual void ShowReportBugDialog(); | 51 virtual void ShowReportBugDialog(); |
| 50 virtual void ShowClearBrowsingDataDialog(); | 52 virtual void ShowClearBrowsingDataDialog(); |
| 51 virtual void ShowImportDialog(); | 53 virtual void ShowImportDialog(); |
| 52 virtual void ShowSearchEnginesDialog(); | 54 virtual void ShowSearchEnginesDialog(); |
| 53 virtual void ShowPasswordManager(); | 55 virtual void ShowPasswordManager(); |
| 54 virtual void ShowHTMLDialog(HtmlDialogContentsDelegate* delegate, | 56 virtual void ShowHTMLDialog(HtmlDialogContentsDelegate* delegate, |
| 55 void* parent_window); | 57 void* parent_window); |
| 56 | 58 |
| 57 protected: | 59 protected: |
| 58 virtual void DestroyBrowser(); | 60 virtual void DestroyBrowser(); |
| 59 | 61 |
| 60 private: | 62 private: |
| 61 BrowserWindowController* controller_; // weak, owns us | 63 BrowserWindowController* controller_; // weak, owns us |
| 62 NSWindow* window_; // weak, owned by |controller_| | 64 NSWindow* window_; // weak, owned by |controller_| |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 #endif // CHROME_BROWSER_WINDOW_COCOA_H_ | 67 #endif // CHROME_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |