diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-10 05:58:40 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-10 05:58:40 +0000 |
commit | 3ee83f2c99cecee4f712cbb6fd9084cb676287a0 (patch) | |
tree | 54d504f603c3277de2100ca8df544d141f2976d0 /chrome | |
parent | b1c25a2fdeade0e807af70df8136d5efa62033d2 (diff) | |
download | chromium_src-3ee83f2c99cecee4f712cbb6fd9084cb676287a0.zip chromium_src-3ee83f2c99cecee4f712cbb6fd9084cb676287a0.tar.gz chromium_src-3ee83f2c99cecee4f712cbb6fd9084cb676287a0.tar.bz2 |
Add a new ViewsDelegate interface and implementation in the windows browser UI.
Provides a way for saving and restoring window placement, obtaining system helpers etc.
http://crbug.com/11633
TEST=make sure window placement saving works, clipboard, and that windows in the taskbar have a chrome icon.
Review URL: http://codereview.chromium.org/113173
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/browser_views.vcproj | 8 | ||||
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/views/browser_views.vcproj b/chrome/browser/views/browser_views.vcproj index 3a79320..d2594d0 100644 --- a/chrome/browser/views/browser_views.vcproj +++ b/chrome/browser/views/browser_views.vcproj @@ -498,6 +498,14 @@ > </File> <File + RelativePath=".\chrome_views_delegate.cc" + > + </File> + <File + RelativePath=".\chrome_views_delegate.h" + > + </File> + <File RelativePath=".\clear_browsing_data.cc" > </File> diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index 4eb6c34..b3aa486 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -28,6 +28,7 @@ #include "chrome/browser/views/bookmark_bubble_view.h" #include "chrome/browser/views/bookmark_manager_view.h" #include "chrome/browser/views/bug_report_view.h" +#include "chrome/browser/views/chrome_views_delegate.h" #include "chrome/browser/views/clear_browsing_data.h" #include "chrome/browser/views/download_shelf_view.h" #include "chrome/browser/views/find_bar_win.h" @@ -1667,6 +1668,8 @@ void BrowserView::InitClass() { // static BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { + if (!views::ViewsDelegate::views_delegate) + views::ViewsDelegate::views_delegate = new ChromeViewsDelegate; BrowserView* browser_view = new BrowserView(browser); (new BrowserFrame(browser_view, browser->profile()))->Init(); return browser_view; |