| 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 #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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 void BrowserView::SetShowState(int state) { | 197 void BrowserView::SetShowState(int state) { |
| 198 explicit_show_state = state; | 198 explicit_show_state = state; |
| 199 } | 199 } |
| 200 | 200 |
| 201 BrowserView::BrowserView(Browser* browser) | 201 BrowserView::BrowserView(Browser* browser) |
| 202 : views::ClientView(NULL, NULL), | 202 : views::ClientView(NULL, NULL), |
| 203 frame_(NULL), | 203 frame_(NULL), |
| 204 browser_(browser), | 204 browser_(browser), |
| 205 active_bookmark_bar_(NULL), | 205 active_bookmark_bar_(NULL), |
| 206 active_download_shelf_(NULL), | 206 active_download_shelf_(NULL), |
| 207 tabstrip_(NULL), |
| 207 toolbar_(NULL), | 208 toolbar_(NULL), |
| 208 infobar_container_(NULL), | 209 infobar_container_(NULL), |
| 209 find_bar_y_(0), | 210 find_bar_y_(0), |
| 210 contents_container_(NULL), | 211 contents_container_(NULL), |
| 211 initialized_(false), | 212 initialized_(false), |
| 212 fullscreen_(false), | 213 fullscreen_(false), |
| 213 ignore_layout_(false), | 214 ignore_layout_(false), |
| 214 hung_window_detector_(&hung_plugin_action_), | 215 hung_window_detector_(&hung_plugin_action_), |
| 215 ticker_(0) | 216 ticker_(0) |
| 216 #ifdef CHROME_PERSONALIZATION | 217 #ifdef CHROME_PERSONALIZATION |
| (...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 initialized = true; | 1631 initialized = true; |
| 1631 } | 1632 } |
| 1632 } | 1633 } |
| 1633 | 1634 |
| 1634 // static | 1635 // static |
| 1635 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 1636 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 1636 BrowserView* browser_view = new BrowserView(browser); | 1637 BrowserView* browser_view = new BrowserView(browser); |
| 1637 (new BrowserFrame(browser_view))->Init(); | 1638 (new BrowserFrame(browser_view))->Init(); |
| 1638 return browser_view; | 1639 return browser_view; |
| 1639 } | 1640 } |
| OLD | NEW |