| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 if (d) | 100 if (d) |
| 101 d->WindowObjectCleared(webframe_); | 101 d->WindowObjectCleared(webframe_); |
| 102 } | 102 } |
| 103 | 103 |
| 104 void WebFrameLoaderClient::didPerformFirstNavigation() const { | 104 void WebFrameLoaderClient::didPerformFirstNavigation() const { |
| 105 } | 105 } |
| 106 | 106 |
| 107 void WebFrameLoaderClient::registerForIconNotification(bool listen){ | 107 void WebFrameLoaderClient::registerForIconNotification(bool listen){ |
| 108 } | 108 } |
| 109 | 109 |
| 110 void WebFrameLoaderClient::unloadListenerChanged() { | |
| 111 WebViewImpl* webview = webframe_->webview_impl(); | |
| 112 WebViewDelegate* d = webview->delegate(); | |
| 113 if (d) | |
| 114 d->OnUnloadListenerChanged(webview, webframe_); | |
| 115 } | |
| 116 | |
| 117 bool WebFrameLoaderClient::hasWebView() const { | 110 bool WebFrameLoaderClient::hasWebView() const { |
| 118 return webframe_->webview_impl() != NULL; | 111 return webframe_->webview_impl() != NULL; |
| 119 } | 112 } |
| 120 | 113 |
| 121 bool WebFrameLoaderClient::hasFrameView() const { | 114 bool WebFrameLoaderClient::hasFrameView() const { |
| 122 // The Mac port has this notion of a WebFrameView, which seems to be | 115 // The Mac port has this notion of a WebFrameView, which seems to be |
| 123 // some wrapper around an NSView. Since our equivalent is HWND, I guess | 116 // some wrapper around an NSView. Since our equivalent is HWND, I guess |
| 124 // we have a "frameview" whenever we have the toplevel HWND. | 117 // we have a "frameview" whenever we have the toplevel HWND. |
| 125 return webframe_->webview_impl() != NULL; | 118 return webframe_->webview_impl() != NULL; |
| 126 } | 119 } |
| (...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 if (!middle_or_ctrl && !shift && !alt) | 1509 if (!middle_or_ctrl && !shift && !alt) |
| 1517 return false; | 1510 return false; |
| 1518 | 1511 |
| 1519 DCHECK(disposition); | 1512 DCHECK(disposition); |
| 1520 if (middle_or_ctrl) | 1513 if (middle_or_ctrl) |
| 1521 *disposition = shift ? NEW_FOREGROUND_TAB : NEW_BACKGROUND_TAB; | 1514 *disposition = shift ? NEW_FOREGROUND_TAB : NEW_BACKGROUND_TAB; |
| 1522 else | 1515 else |
| 1523 *disposition = shift ? NEW_WINDOW : SAVE_TO_DISK; | 1516 *disposition = shift ? NEW_WINDOW : SAVE_TO_DISK; |
| 1524 return true; | 1517 return true; |
| 1525 } | 1518 } |
| OLD | NEW |