| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 | 944 |
| 945 void BrowserView::ShowAboutChromeDialog() { | 945 void BrowserView::ShowAboutChromeDialog() { |
| 946 browser::ShowAboutChromeView(GetWindow()->GetNativeWindow(), | 946 browser::ShowAboutChromeView(GetWindow()->GetNativeWindow(), |
| 947 browser_->profile()); | 947 browser_->profile()); |
| 948 } | 948 } |
| 949 | 949 |
| 950 void BrowserView::ShowTaskManager() { | 950 void BrowserView::ShowTaskManager() { |
| 951 browser::ShowTaskManager(); | 951 browser::ShowTaskManager(); |
| 952 } | 952 } |
| 953 | 953 |
| 954 void BrowserView::ShowBookmarkManager() { | |
| 955 browser::ShowBookmarkManagerView(browser_->profile()); | |
| 956 } | |
| 957 | |
| 958 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { | 954 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { |
| 959 toolbar_->location_bar()->ShowStarBubble(url, !already_bookmarked); | 955 toolbar_->location_bar()->ShowStarBubble(url, !already_bookmarked); |
| 960 } | 956 } |
| 961 | 957 |
| 962 void BrowserView::SetDownloadShelfVisible(bool visible) { | 958 void BrowserView::SetDownloadShelfVisible(bool visible) { |
| 963 // This can be called from the superclass destructor, when it destroys our | 959 // This can be called from the superclass destructor, when it destroys our |
| 964 // child views. At that point, browser_ is already gone. | 960 // child views. At that point, browser_ is already gone. |
| 965 if (browser_ == NULL) | 961 if (browser_ == NULL) |
| 966 return; | 962 return; |
| 967 | 963 |
| (...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2183 SetAccessibleName(l10n_util::GetString(IDS_PRODUCT_NAME)); | 2179 SetAccessibleName(l10n_util::GetString(IDS_PRODUCT_NAME)); |
| 2184 | 2180 |
| 2185 return view; | 2181 return view; |
| 2186 } | 2182 } |
| 2187 #endif | 2183 #endif |
| 2188 | 2184 |
| 2189 // static | 2185 // static |
| 2190 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 2186 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
| 2191 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 2187 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
| 2192 } | 2188 } |
| OLD | NEW |