| 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_VIEWS_FRAME_BROWSER_EXTENDER_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_EXTENDER_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_EXTENDER_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_EXTENDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gfx/rect.h" | 9 #include "base/gfx/rect.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Called when the BrowserView is closed. | 49 // Called when the BrowserView is closed. |
| 50 virtual void Close() = 0; | 50 virtual void Close() = 0; |
| 51 | 51 |
| 52 // Called when the browser window is either activated or deactivated. | 52 // Called when the browser window is either activated or deactivated. |
| 53 virtual void ActivationChanged() = 0; | 53 virtual void ActivationChanged() = 0; |
| 54 | 54 |
| 55 // Returns true to hide the toolbar for the window, or false | 55 // Returns true to hide the toolbar for the window, or false |
| 56 // to use the regular logic to decide. | 56 // to use the regular logic to decide. |
| 57 virtual bool ShouldForceHideToolbar() = 0; | 57 virtual bool ShouldForceHideToolbar() = 0; |
| 58 | 58 |
| 59 // Returns true if the compact navigation bar is focusable and got | 59 // Returns true if the compact navigation bar is focusable and got |
| 60 // focus, false otherwise. | 60 // focus, false otherwise. |
| 61 virtual bool SetFocusToCompactNavigationBar() = 0; | 61 virtual bool SetFocusToCompactNavigationBar() = 0; |
| 62 | 62 |
| 63 // Toggles the visibility of CompactNavigationBar. | 63 // Toggles the visibility of CompactNavigationBar. |
| 64 virtual void ToggleCompactNavigationBar() = 0; | 64 virtual void ToggleCompactNavigationBar() = 0; |
| 65 | 65 |
| 66 // Called when a mouse entered into the |tab|. | 66 // Called when a mouse entered into the |tab|. |
| 67 virtual void OnMouseEnteredToTab(Tab* tab) = 0; | 67 virtual void OnMouseEnteredToTab(Tab* tab) = 0; |
| 68 | 68 |
| 69 // Called when a mouse moved (hovered) on the |tab|. | 69 // Called when a mouse moved (hovered) on the |tab|. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 97 // BrowserView to be extended. | 97 // BrowserView to be extended. |
| 98 BrowserView* browser_view_; | 98 BrowserView* browser_view_; |
| 99 | 99 |
| 100 // True if the browser can be closed. See set_can_close method for setails. | 100 // True if the browser can be closed. See set_can_close method for setails. |
| 101 bool can_close_; | 101 bool can_close_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(BrowserExtender); | 103 DISALLOW_COPY_AND_ASSIGN(BrowserExtender); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_EXTENDER_H_ | 106 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_EXTENDER_H_ |
| OLD | NEW |