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

Side by Side Diff: webkit/glue/webframeloaderclient_impl.cc

Issue 19624: Add early-injection capability to user scripts. I haven't yet (Closed)
Patch Set: Use new documentElementAvailable() callback Created 11 years, 10 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
OLDNEW
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 void WebFrameLoaderClient::windowObjectCleared() { 96 void WebFrameLoaderClient::windowObjectCleared() {
97 WebViewImpl* webview = webframe_->webview_impl(); 97 WebViewImpl* webview = webframe_->webview_impl();
98 WebViewDelegate* d = webview->delegate(); 98 WebViewDelegate* d = webview->delegate();
99 if (d) 99 if (d)
100 d->WindowObjectCleared(webframe_); 100 d->WindowObjectCleared(webframe_);
101 } 101 }
102 102
103 void WebFrameLoaderClient::documentElementAvailable() { 103 void WebFrameLoaderClient::documentElementAvailable() {
104 // TODO(aa): Implement. 104 WebViewImpl* webview = webframe_->webview_impl();
105 notImplemented(); 105 WebViewDelegate* d = webview->delegate();
106 if (d)
107 d->DocumentElementAvailable(webframe_);
106 } 108 }
107 109
108 void WebFrameLoaderClient::didPerformFirstNavigation() const { 110 void WebFrameLoaderClient::didPerformFirstNavigation() const {
109 } 111 }
110 112
111 void WebFrameLoaderClient::registerForIconNotification(bool listen){ 113 void WebFrameLoaderClient::registerForIconNotification(bool listen){
112 } 114 }
113 115
114 bool WebFrameLoaderClient::hasWebView() const { 116 bool WebFrameLoaderClient::hasWebView() const {
115 return webframe_->webview_impl() != NULL; 117 return webframe_->webview_impl() != NULL;
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1518 if (!middle_or_ctrl && !shift && !alt) 1520 if (!middle_or_ctrl && !shift && !alt)
1519 return false; 1521 return false;
1520 1522
1521 DCHECK(disposition); 1523 DCHECK(disposition);
1522 if (middle_or_ctrl) 1524 if (middle_or_ctrl)
1523 *disposition = shift ? NEW_FOREGROUND_TAB : NEW_BACKGROUND_TAB; 1525 *disposition = shift ? NEW_FOREGROUND_TAB : NEW_BACKGROUND_TAB;
1524 else 1526 else
1525 *disposition = shift ? NEW_WINDOW : SAVE_TO_DISK; 1527 *disposition = shift ? NEW_WINDOW : SAVE_TO_DISK;
1526 return true; 1528 return true;
1527 } 1529 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698