| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 #include "chrome/browser/views/frame/browser_view.h" | 5 #include "chrome/browser/views/frame/browser_view.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_version_info.h" | 8 #include "base/file_version_info.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/app/chrome_dll_resource.h" | 10 #include "chrome/app/chrome_dll_resource.h" |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 return true; | 244 return true; |
| 245 } | 245 } |
| 246 | 246 |
| 247 // WindowDelegate implementation: | 247 // WindowDelegate implementation: |
| 248 virtual bool IsModal() const { return true; } | 248 virtual bool IsModal() const { return true; } |
| 249 | 249 |
| 250 virtual views::View* GetContentsView() { | 250 virtual views::View* GetContentsView() { |
| 251 return this; | 251 return this; |
| 252 } | 252 } |
| 253 | 253 |
| 254 virtual std::wstring GetWindowTitle() const { |
| 255 return l10n_util::GetString(IDS_PRODUCT_NAME); |
| 256 } |
| 257 |
| 254 private: | 258 private: |
| 255 Browser* browser_; | 259 Browser* browser_; |
| 256 views::Label* label_; | 260 views::Label* label_; |
| 257 | 261 |
| 258 DISALLOW_COPY_AND_ASSIGN(DownloadInProgressConfirmDialogDelegate); | 262 DISALLOW_COPY_AND_ASSIGN(DownloadInProgressConfirmDialogDelegate); |
| 259 }; | 263 }; |
| 260 | 264 |
| 261 /////////////////////////////////////////////////////////////////////////////// | 265 /////////////////////////////////////////////////////////////////////////////// |
| 262 // BrowserView, public: | 266 // BrowserView, public: |
| 263 | 267 |
| (...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 1628 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 1625 BrowserView* browser_view = new BrowserView(browser); | 1629 BrowserView* browser_view = new BrowserView(browser); |
| 1626 (new BrowserFrame(browser_view))->Init(); | 1630 (new BrowserFrame(browser_view))->Init(); |
| 1627 return browser_view; | 1631 return browser_view; |
| 1628 } | 1632 } |
| 1629 | 1633 |
| 1630 // static | 1634 // static |
| 1631 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 1635 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
| 1632 return new FindBarWin(static_cast<BrowserView*>(browser->window())); | 1636 return new FindBarWin(static_cast<BrowserView*>(browser->window())); |
| 1633 } | 1637 } |
| OLD | NEW |