diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 19:24:31 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 19:24:31 +0000 |
commit | 2d46c8462c1c9104c100ee1f3414db754b897a8f (patch) | |
tree | d97575e12d73eaee70516a069bebcde26804a28c /chrome/browser/browser_window.h | |
parent | 5190d28cbce355d98236bd06beee5099f4da3790 (diff) | |
download | chromium_src-2d46c8462c1c9104c100ee1f3414db754b897a8f.zip chromium_src-2d46c8462c1c9104c100ee1f3414db754b897a8f.tar.gz chromium_src-2d46c8462c1c9104c100ee1f3414db754b897a8f.tar.bz2 |
Rid most of the Browser object of HWND dependencies.
Review URL: http://codereview.chromium.org/10929
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_window.h')
-rw-r--r-- | chrome/browser/browser_window.h | 45 |
1 files changed, 37 insertions, 8 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h index 97a8292..f500c42 100644 --- a/chrome/browser/browser_window.h +++ b/chrome/browser/browser_window.h @@ -5,25 +5,21 @@ #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ #define CHROME_BROWSER_BROWSER_WINDOW_H_ -#include <map> - -#include "base/gfx/point.h" -#include "base/gfx/rect.h" -#include "chrome/views/accelerator.h" - class BookmarkBarView; class Browser; class BrowserList; class BrowserView; class GoButton; class LocationBarView; +class HtmlDialogContentsDelegate; class Profile; class StatusBubble; class TabContents; class TabStrip; class ToolbarStarToggle; -namespace views { -class RootView; + +namespace gfx { +class Rect; } //////////////////////////////////////////////////////////////////////////////// @@ -38,6 +34,9 @@ class BrowserWindow { // Show the window, or activates it if it's already visible. virtual void Show() = 0; + // Sets the window's size and position to the specified values. + virtual void SetBounds(const gfx::Rect& bounds) = 0; + // Closes the frame as soon as possible. If the frame is not in a drag // session, it will close immediately; otherwise, it will move offscreen (so // events are still fired) until the drag ends, then close. @@ -109,6 +108,36 @@ class BrowserWindow { // Returns whether the bookmark bar is visible or not. virtual bool IsBookmarkBarVisible() const = 0; + // Shows or hides the bookmark bar depending on its current visibility. + virtual void ToggleBookmarkBar() = 0; + + // Shows the About Chrome dialog box. + virtual void ShowAboutChromeDialog() = 0; + + // Shows the Bookmark Manager window. + virtual void ShowBookmarkManager() = 0; + + // Shows the Report a Bug dialog box. + virtual void ShowReportBugDialog() = 0; + + // Shows the Clear Browsing Data dialog box. + virtual void ShowClearBrowsingDataDialog() = 0; + + // Shows the Import Bookmarks & Settings dialog box. + virtual void ShowImportDialog() = 0; + + // Shows the Search Engines dialog box. + virtual void ShowSearchEnginesDialog() = 0; + + // Shows the Password Manager dialog box. + virtual void ShowPasswordManager() = 0; + + // Shows a dialog box with HTML content, e.g. for Gears. |parent_window| is + // the window the dialog should be opened modal to and is a native window + // handle. + virtual void ShowHTMLDialog(HtmlDialogContentsDelegate* delegate, + void* parent_window) = 0; + // Construct a BrowserWindow implementation for the specified |browser|. static BrowserWindow* CreateBrowserWindow(Browser* browser); |