Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/frame/browser_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 6 | 6 |
| 7 #if defined(TOOLKIT_USES_GTK) | 7 #if defined(TOOLKIT_USES_GTK) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1045 | 1045 |
| 1046 void BrowserView::ShowCompactLocationBarUnderSelectedTab() { | 1046 void BrowserView::ShowCompactLocationBarUnderSelectedTab() { |
| 1047 if (!UseCompactNavigationBar()) | 1047 if (!UseCompactNavigationBar()) |
| 1048 return; | 1048 return; |
| 1049 compact_location_bar_view_host_->UpdateOnTabChange(browser()->active_index(), | 1049 compact_location_bar_view_host_->UpdateOnTabChange(browser()->active_index(), |
| 1050 true); | 1050 true); |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 void BrowserView::ShowTaskManager() { | 1053 void BrowserView::ShowTaskManager() { |
| 1054 // Uses WebUI TaskManager when swiches is set. It is beta feature. | 1054 // Uses WebUI TaskManager when swiches is set. It is beta feature. |
| 1055 #if !defined(TOUCH_UI) | |
|
mazda
2011/07/19 10:05:07
How about enclosing the block with one if-else cla
yoshiki
2011/07/20 07:39:00
Done.
| |
| 1055 if (CommandLine::ForCurrentProcess() | 1056 if (CommandLine::ForCurrentProcess() |
| 1056 ->HasSwitch(switches::kEnableWebUITaskManager)) { | 1057 ->HasSwitch(switches::kEnableWebUITaskManager)) { |
| 1058 #endif | |
| 1057 TaskManagerDialog::Show(); | 1059 TaskManagerDialog::Show(); |
| 1060 #if !defined(TOUCH_UI) | |
| 1058 } else { | 1061 } else { |
| 1059 browser::ShowTaskManager(); | 1062 browser::ShowTaskManager(); |
| 1060 } | 1063 } |
| 1064 #endif | |
| 1061 } | 1065 } |
| 1062 | 1066 |
| 1063 void BrowserView::ShowBackgroundPages() { | 1067 void BrowserView::ShowBackgroundPages() { |
| 1064 browser::ShowBackgroundPages(); | 1068 browser::ShowBackgroundPages(); |
| 1065 } | 1069 } |
| 1066 | 1070 |
| 1067 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { | 1071 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { |
| 1068 GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); | 1072 GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); |
| 1069 } | 1073 } |
| 1070 | 1074 |
| (...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2641 view->GetWidget()->non_client_view()->SetAccessibleName( | 2645 view->GetWidget()->non_client_view()->SetAccessibleName( |
| 2642 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); | 2646 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); |
| 2643 return view; | 2647 return view; |
| 2644 } | 2648 } |
| 2645 #endif | 2649 #endif |
| 2646 | 2650 |
| 2647 // static | 2651 // static |
| 2648 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 2652 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
| 2649 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 2653 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
| 2650 } | 2654 } |
| OLD | NEW |