Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 6670011: Options: Remove the GTK and Views native options code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698