| 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 16 matching lines...) Expand all Loading... |
| 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 StatusBubble* GetStatusBubble(); | 31 virtual StatusBubble* GetStatusBubble(); |
| 32 virtual void SelectedTabToolbarSizeChanged(bool is_animating); | 32 virtual void SelectedTabToolbarSizeChanged(bool is_animating); |
| 33 virtual void UpdateTitleBar(); | 33 virtual void UpdateTitleBar(); |
| 34 virtual void UpdateLoadingAnimations(bool should_animate); | 34 virtual void UpdateLoadingAnimations(bool should_animate); |
| 35 virtual void SetStarredState(bool is_starred); | 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() const; |
| 38 virtual LocationBar* GetLocationBar() const; | 38 virtual LocationBar* GetLocationBar() const; |
| 39 virtual void UpdateStopGoState(bool is_loading); | 39 virtual void UpdateStopGoState(bool is_loading); |
| 40 virtual void UpdateToolbar(TabContents* contents, | 40 virtual void UpdateToolbar(TabContents* contents, |
| 41 bool should_restore_state); | 41 bool should_restore_state); |
| 42 virtual void FocusToolbar(); | 42 virtual void FocusToolbar(); |
| 43 virtual bool IsBookmarkBarVisible() const; | 43 virtual bool IsBookmarkBarVisible() const; |
| 44 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 44 virtual void ToggleBookmarkBar(); | 45 virtual void ToggleBookmarkBar(); |
| 45 virtual void ShowAboutChromeDialog(); | 46 virtual void ShowAboutChromeDialog(); |
| 46 virtual void ShowBookmarkManager(); | 47 virtual void ShowBookmarkManager(); |
| 47 virtual bool IsBookmarkBubbleVisible() const; | 48 virtual bool IsBookmarkBubbleVisible() const; |
| 48 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); | 49 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); |
| 49 virtual void ShowReportBugDialog(); | 50 virtual void ShowReportBugDialog(); |
| 50 virtual void ShowClearBrowsingDataDialog(); | 51 virtual void ShowClearBrowsingDataDialog(); |
| 51 virtual void ShowImportDialog(); | 52 virtual void ShowImportDialog(); |
| 52 virtual void ShowSearchEnginesDialog(); | 53 virtual void ShowSearchEnginesDialog(); |
| 53 virtual void ShowPasswordManager(); | 54 virtual void ShowPasswordManager(); |
| 54 virtual void ShowSelectProfileDialog(); | 55 virtual void ShowSelectProfileDialog(); |
| 55 virtual void ShowNewProfileDialog(); | 56 virtual void ShowNewProfileDialog(); |
| 56 virtual void ShowHTMLDialog(HtmlDialogContentsDelegate* delegate, | 57 virtual void ShowHTMLDialog(HtmlDialogContentsDelegate* delegate, |
| 57 void* parent_window); | 58 void* parent_window); |
| 58 | 59 |
| 59 protected: | 60 protected: |
| 60 virtual void DestroyBrowser(); | 61 virtual void DestroyBrowser(); |
| 61 | 62 |
| 62 private: | 63 private: |
| 63 BrowserWindowController* controller_; // weak, owns us | 64 BrowserWindowController* controller_; // weak, owns us |
| 64 NSWindow* window_; // weak, owned by |controller_| | 65 NSWindow* window_; // weak, owned by |controller_| |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 #endif // CHROME_BROWSER_WINDOW_COCOA_H_ | 68 #endif // CHROME_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |