diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 07:35:32 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 07:35:32 +0000 |
commit | 213dac2f0bff9162502fe325b6ebb85a255efcb2 (patch) | |
tree | 3640cb1f19976e38677b8632537d2d41f8444d0f /chrome/browser/views/frame/browser_frame.h | |
parent | 6de53d401aa8dc6c7e0a9874c71a95ce88ade50d (diff) | |
download | chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.zip chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.gz chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.bz2 |
Move browser/views to browser/ui/views
TBR=brettw
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4694005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_frame.h')
-rw-r--r-- | chrome/browser/views/frame/browser_frame.h | 73 |
1 files changed, 3 insertions, 70 deletions
diff --git a/chrome/browser/views/frame/browser_frame.h b/chrome/browser/views/frame/browser_frame.h index 0e3b9b2..eaf9fe6 100644 --- a/chrome/browser/views/frame/browser_frame.h +++ b/chrome/browser/views/frame/browser_frame.h @@ -6,75 +6,8 @@ #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ #pragma once -#include "build/build_config.h" -#include "views/window/non_client_view.h" - -class BaseTabStrip; -class BrowserView; -class Profile; -class ThemeProvider; - -namespace gfx { -class Font; -class Rect; -} // namespace gfx - -namespace views { -class Window; - -#if defined(OS_WIN) -class WindowWin; -#endif -} // namespace views - -// This is a virtual interface that allows system specific browser frames. -class BrowserFrame { - public: - virtual ~BrowserFrame() {} - - // Creates the appropriate BrowserFrame for this platform. The returned - // object is owned by the caller. - static BrowserFrame* Create(BrowserView* browser_view, Profile* profile); - - static const gfx::Font& GetTitleFont(); - - // Returns the Window associated with this frame. Guraranteed non-NULL after - // construction. - virtual views::Window* GetWindow() = 0; - - // Determine the distance of the left edge of the minimize button from the - // left edge of the window. Used in our Non-Client View's Layout. - virtual int GetMinimizeButtonOffset() const = 0; - - // Retrieves the bounds, in non-client view coordinates for the specified - // TabStrip. - virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; - - // Returns the y coordinate within the window at which the horizontal TabStrip - // begins (or would begin). If |restored| is true, this is calculated as if - // we were in restored mode regardless of the current mode. - virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0; - - // Tells the frame to update the throbber. - virtual void UpdateThrobber(bool running) = 0; - - // Tells the frame to continue a drag detached tab operation. - virtual void ContinueDraggingDetachedTab() = 0; - - // Returns the theme provider for this frame. - virtual ThemeProvider* GetThemeProviderForFrame() const = 0; - - // Returns true if the window should use the native frame view. This is true - // if there are no themes applied on Vista, or if there are themes applied and - // this browser window is an app or popup. - virtual bool AlwaysUseNativeFrame() const = 0; - - // Returns the NonClientFrameView of this frame. - virtual views::View* GetFrameView() const = 0; - - // Notifies the frame that the tab strip display mode changed so it can update - // its frame treatment if necessary. - virtual void TabStripDisplayModeChanged() = 0; -}; +#include "chrome/browser/ui/views/frame/browser_frame.h" +// TODO(beng): remove this file once all includes have been updated. #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ + |