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 "config.h" | 5 #include "config.h" |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 | 10 |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1256 // has changed. | 1256 // has changed. |
1257 // | 1257 // |
1258 // e.g.: | 1258 // e.g.: |
1259 // WebHistoryItem* item = | 1259 // WebHistoryItem* item = |
1260 // webframe_->webview_impl()->GetBackForwardList()->GetCurrentItem(); | 1260 // webframe_->webview_impl()->GetBackForwardList()->GetCurrentItem(); |
1261 // WebHistoryItemImpl* item_impl = static_cast<WebHistoryItemImpl*>(item); | 1261 // WebHistoryItemImpl* item_impl = static_cast<WebHistoryItemImpl*>(item); |
1262 // | 1262 // |
1263 // item_impl->SetTitle(webkit_glue::StringToStdWString(title)); | 1263 // item_impl->SetTitle(webkit_glue::StringToStdWString(title)); |
1264 } | 1264 } |
1265 | 1265 |
1266 String WebFrameLoaderClient::userAgent(const KURL& url) { | 1266 String WebFrameLoaderClient::userAgent(const KURL& url) { |
wtc
2009/01/27 19:19:24
So WebFrameLoaderClient::userAgent is already desi
darin (slow to review)
2009/01/27 19:52:06
Yup.
| |
1267 return webkit_glue::StdStringToString(webkit_glue::GetUserAgent()); | 1267 return webkit_glue::StdStringToString( |
1268 webkit_glue::GetUserAgent(webkit_glue::KURLToGURL(url))); | |
1268 } | 1269 } |
1269 | 1270 |
1270 void WebFrameLoaderClient::savePlatformDataToCachedPage(WebCore::CachedPage*) { | 1271 void WebFrameLoaderClient::savePlatformDataToCachedPage(WebCore::CachedPage*) { |
1271 NOTREACHED() << "Page cache should be disabled"; | 1272 NOTREACHED() << "Page cache should be disabled"; |
1272 } | 1273 } |
1273 | 1274 |
1274 void WebFrameLoaderClient::transitionToCommittedFromCachedPage(WebCore::CachedPa ge*) { | 1275 void WebFrameLoaderClient::transitionToCommittedFromCachedPage(WebCore::CachedPa ge*) { |
1275 ASSERT_NOT_REACHED(); | 1276 ASSERT_NOT_REACHED(); |
1276 } | 1277 } |
1277 | 1278 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1507 if (!middle_or_ctrl && !shift && !alt) | 1508 if (!middle_or_ctrl && !shift && !alt) |
1508 return false; | 1509 return false; |
1509 | 1510 |
1510 DCHECK(disposition); | 1511 DCHECK(disposition); |
1511 if (middle_or_ctrl) | 1512 if (middle_or_ctrl) |
1512 *disposition = shift ? NEW_FOREGROUND_TAB : NEW_BACKGROUND_TAB; | 1513 *disposition = shift ? NEW_FOREGROUND_TAB : NEW_BACKGROUND_TAB; |
1513 else | 1514 else |
1514 *disposition = shift ? NEW_WINDOW : SAVE_TO_DISK; | 1515 *disposition = shift ? NEW_WINDOW : SAVE_TO_DISK; |
1515 return true; | 1516 return true; |
1516 } | 1517 } |
OLD | NEW |