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/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif // OS_WIN | 10 #endif // OS_WIN |
(...skipping 3170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3181 } | 3181 } |
3182 | 3182 |
3183 void Browser::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { | 3183 void Browser::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { |
3184 window()->HandleKeyboardEvent(event); | 3184 window()->HandleKeyboardEvent(event); |
3185 } | 3185 } |
3186 | 3186 |
3187 void Browser::ShowRepostFormWarningDialog(TabContents *tab_contents) { | 3187 void Browser::ShowRepostFormWarningDialog(TabContents *tab_contents) { |
3188 window()->ShowRepostFormWarningDialog(tab_contents); | 3188 window()->ShowRepostFormWarningDialog(tab_contents); |
3189 } | 3189 } |
3190 | 3190 |
3191 void Browser::ShowContentSettingsWindow(ContentSettingsType content_type) { | 3191 void Browser::ShowContentSettingsPage(ContentSettingsType content_type) { |
3192 // TODO(jhawkins): Remove BrowserWindow::ShowContentSettingsWindow. | |
3193 ShowOptionsTab( | 3192 ShowOptionsTab( |
3194 chrome::kContentSettingsExceptionsSubPage + std::string(kHashMark) + | 3193 chrome::kContentSettingsExceptionsSubPage + std::string(kHashMark) + |
3195 ContentSettingsHandler::ContentSettingsTypeToGroupName(content_type)); | 3194 ContentSettingsHandler::ContentSettingsTypeToGroupName(content_type)); |
3196 } | 3195 } |
3197 | 3196 |
3198 void Browser::ShowCollectedCookiesDialog(TabContents *tab_contents) { | 3197 void Browser::ShowCollectedCookiesDialog(TabContents *tab_contents) { |
3199 window()->ShowCollectedCookiesDialog(tab_contents); | 3198 window()->ShowCollectedCookiesDialog(tab_contents); |
3200 } | 3199 } |
3201 | 3200 |
3202 bool Browser::ShouldAddNavigationToHistory( | 3201 bool Browser::ShouldAddNavigationToHistory( |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4397 // The page transition below is only for the purpose of inserting the tab. | 4396 // The page transition below is only for the purpose of inserting the tab. |
4398 browser->AddTab(view_source_contents, PageTransition::LINK); | 4397 browser->AddTab(view_source_contents, PageTransition::LINK); |
4399 } | 4398 } |
4400 | 4399 |
4401 if (profile_->HasSessionService()) { | 4400 if (profile_->HasSessionService()) { |
4402 SessionService* session_service = profile_->GetSessionService(); | 4401 SessionService* session_service = profile_->GetSessionService(); |
4403 if (session_service) | 4402 if (session_service) |
4404 session_service->TabRestored(&view_source_contents->controller(), false); | 4403 session_service->TabRestored(&view_source_contents->controller(), false); |
4405 } | 4404 } |
4406 } | 4405 } |
OLD | NEW |