| 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 #pragma warning(push, 0) | 9 #pragma warning(push, 0) |
| 10 #include "Chrome.h" | 10 #include "Chrome.h" |
| (...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 // | 1255 // |
| 1256 // e.g.: | 1256 // e.g.: |
| 1257 // WebHistoryItem* item = | 1257 // WebHistoryItem* item = |
| 1258 // webframe_->webview_impl()->GetBackForwardList()->GetCurrentItem(); | 1258 // webframe_->webview_impl()->GetBackForwardList()->GetCurrentItem(); |
| 1259 // WebHistoryItemImpl* item_impl = static_cast<WebHistoryItemImpl*>(item); | 1259 // WebHistoryItemImpl* item_impl = static_cast<WebHistoryItemImpl*>(item); |
| 1260 // | 1260 // |
| 1261 // item_impl->SetTitle(webkit_glue::StringToStdWString(title)); | 1261 // item_impl->SetTitle(webkit_glue::StringToStdWString(title)); |
| 1262 } | 1262 } |
| 1263 | 1263 |
| 1264 String WebFrameLoaderClient::userAgent(const KURL& url) { | 1264 String WebFrameLoaderClient::userAgent(const KURL& url) { |
| 1265 return webkit_glue::StdStringToString(webkit_glue::GetUserAgent()); | 1265 return webkit_glue::StdStringToString( |
| 1266 webkit_glue::GetUserAgent(webkit_glue::KURLToGURL(url))); |
| 1266 } | 1267 } |
| 1267 | 1268 |
| 1268 void WebFrameLoaderClient::savePlatformDataToCachedPage(WebCore::CachedPage*) { | 1269 void WebFrameLoaderClient::savePlatformDataToCachedPage(WebCore::CachedPage*) { |
| 1269 NOTREACHED() << "Page cache should be disabled"; | 1270 NOTREACHED() << "Page cache should be disabled"; |
| 1270 } | 1271 } |
| 1271 | 1272 |
| 1272 void WebFrameLoaderClient::transitionToCommittedFromCachedPage(WebCore::CachedPa
ge*) { | 1273 void WebFrameLoaderClient::transitionToCommittedFromCachedPage(WebCore::CachedPa
ge*) { |
| 1273 ASSERT_NOT_REACHED(); | 1274 ASSERT_NOT_REACHED(); |
| 1274 } | 1275 } |
| 1275 | 1276 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| 1517 | 1518 |
| OLD | NEW |