| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_FRAME_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "views/window/non_client_view.h" | 9 #include "views/window/non_client_view.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Creates the appropriate BrowserFrame for this platform. The returned | 34 // Creates the appropriate BrowserFrame for this platform. The returned |
| 35 // object is owned by the caller. | 35 // object is owned by the caller. |
| 36 static BrowserFrame* Create(BrowserView* browser_view, Profile* profile); | 36 static BrowserFrame* Create(BrowserView* browser_view, Profile* profile); |
| 37 | 37 |
| 38 static const gfx::Font& GetTitleFont(); | 38 static const gfx::Font& GetTitleFont(); |
| 39 | 39 |
| 40 // Returns the Window associated with this frame. Guraranteed non-NULL after | 40 // Returns the Window associated with this frame. Guraranteed non-NULL after |
| 41 // construction. | 41 // construction. |
| 42 virtual views::Window* GetWindow() = 0; | 42 virtual views::Window* GetWindow() = 0; |
| 43 | 43 |
| 44 // Notification that the tab strip has been created. This should let the | |
| 45 // BrowserRootView know about it so it can enable drag and drop. | |
| 46 virtual void TabStripCreated(BaseTabStrip* tabstrip) = 0; | |
| 47 | |
| 48 // Determine the distance of the left edge of the minimize button from the | 44 // Determine the distance of the left edge of the minimize button from the |
| 49 // left edge of the window. Used in our Non-Client View's Layout. | 45 // left edge of the window. Used in our Non-Client View's Layout. |
| 50 virtual int GetMinimizeButtonOffset() const = 0; | 46 virtual int GetMinimizeButtonOffset() const = 0; |
| 51 | 47 |
| 52 // Retrieves the bounds, in non-client view coordinates for the specified | 48 // Retrieves the bounds, in non-client view coordinates for the specified |
| 53 // TabStrip. | 49 // TabStrip. |
| 54 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; | 50 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; |
| 55 | 51 |
| 56 // Tells the frame to update the throbber. | 52 // Tells the frame to update the throbber. |
| 57 virtual void UpdateThrobber(bool running) = 0; | 53 virtual void UpdateThrobber(bool running) = 0; |
| 58 | 54 |
| 59 // Tells the frame to continue a drag detached tab operation. | 55 // Tells the frame to continue a drag detached tab operation. |
| 60 virtual void ContinueDraggingDetachedTab() = 0; | 56 virtual void ContinueDraggingDetachedTab() = 0; |
| 61 | 57 |
| 62 // Returns the theme provider for this frame. | 58 // Returns the theme provider for this frame. |
| 63 virtual ThemeProvider* GetThemeProviderForFrame() const = 0; | 59 virtual ThemeProvider* GetThemeProviderForFrame() const = 0; |
| 64 | 60 |
| 65 // Returns true if the window should use the native frame view. This is true | 61 // Returns true if the window should use the native frame view. This is true |
| 66 // if there are no themes applied on Vista, or if there are themes applied and | 62 // if there are no themes applied on Vista, or if there are themes applied and |
| 67 // this browser window is an app or popup. | 63 // this browser window is an app or popup. |
| 68 virtual bool AlwaysUseNativeFrame() const = 0; | 64 virtual bool AlwaysUseNativeFrame() const = 0; |
| 69 | 65 |
| 70 // Returns the NonClientFrameView of this frame. | 66 // Returns the NonClientFrameView of this frame. |
| 71 virtual views::View* GetFrameView() const = 0; | 67 virtual views::View* GetFrameView() const = 0; |
| 72 | 68 |
| 73 // Paints the shadow edge along the side of the side tabstrip. The BrowserView | 69 // Paints the shadow edge along the side of the side tabstrip. The BrowserView |
| 74 // calls this method _after_ the TabStrip has painted itself so the shadow is | 70 // calls this method _after_ the TabStrip has painted itself so the shadow is |
| 75 // rendered above the tabs. | 71 // rendered above the tabs. |
| 76 virtual void PaintTabStripShadow(gfx::Canvas* canvas) = 0; | 72 virtual void PaintTabStripShadow(gfx::Canvas* canvas) = 0; |
| 73 |
| 74 // Notifies the frame that the tab strip display mode changed so it can update |
| 75 // its frame treatment if necessary. |
| 76 virtual void TabStripDisplayModeChanged() = 0; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ | 79 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |