| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ |
| 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/gfx/native_widget_types.h" | 8 #include "base/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 class Browser; | 10 class Browser; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 // Returns the location bar. | 100 // Returns the location bar. |
| 101 virtual LocationBar* GetLocationBar() const = 0; | 101 virtual LocationBar* GetLocationBar() const = 0; |
| 102 | 102 |
| 103 // Tries to focus the location bar. Clears the window focus (to avoid | 103 // Tries to focus the location bar. Clears the window focus (to avoid |
| 104 // inconsistent state) if this fails. | 104 // inconsistent state) if this fails. |
| 105 virtual void SetFocusToLocationBar() = 0; | 105 virtual void SetFocusToLocationBar() = 0; |
| 106 | 106 |
| 107 // Informs the view whether or not a load is in progress for the current tab. | 107 // Informs the view whether or not a load is in progress for the current tab. |
| 108 // The view can use this notification to update the go/stop button. | 108 // The view can use this notification to update the go/stop button. |
| 109 virtual void UpdateStopGoState(bool is_loading) = 0; | 109 virtual void UpdateStopGoState(bool is_loading, bool force) = 0; |
| 110 | 110 |
| 111 // Updates the toolbar with the state for the specified |contents|. | 111 // Updates the toolbar with the state for the specified |contents|. |
| 112 virtual void UpdateToolbar(TabContents* contents, | 112 virtual void UpdateToolbar(TabContents* contents, |
| 113 bool should_restore_state) = 0; | 113 bool should_restore_state) = 0; |
| 114 | 114 |
| 115 // Focuses the toolbar (for accessibility). | 115 // Focuses the toolbar (for accessibility). |
| 116 virtual void FocusToolbar() = 0; | 116 virtual void FocusToolbar() = 0; |
| 117 | 117 |
| 118 // Returns whether the bookmark bar is visible or not. | 118 // Returns whether the bookmark bar is visible or not. |
| 119 virtual bool IsBookmarkBarVisible() const = 0; | 119 virtual bool IsBookmarkBarVisible() const = 0; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 #if defined(OS_WIN) | 198 #if defined(OS_WIN) |
| 199 // Returns the BookmarkBarView. | 199 // Returns the BookmarkBarView. |
| 200 virtual BookmarkBarView* GetBookmarkBarView() const = 0; | 200 virtual BookmarkBarView* GetBookmarkBarView() const = 0; |
| 201 | 201 |
| 202 // Returns the LocationBarView. | 202 // Returns the LocationBarView. |
| 203 virtual LocationBarView* GetLocationBarView() const = 0; | 203 virtual LocationBarView* GetLocationBarView() const = 0; |
| 204 #endif | 204 #endif |
| 205 }; | 205 }; |
| 206 | 206 |
| 207 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ | 207 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ |
| OLD | NEW |