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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 11270018: [autofill] Adding new API to request an interactive autocomplete UI flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2183 bool success = false; 2183 bool success = false;
2184 // This is an ignored return value, but is included so we can accept the same 2184 // This is an ignored return value, but is included so we can accept the same
2185 // response as RunJavaScriptMessage. 2185 // response as RunJavaScriptMessage.
2186 string16 ignored_result; 2186 string16 ignored_result;
2187 SendAndRunNestedMessageLoop(new ViewHostMsg_RunBeforeUnloadConfirm( 2187 SendAndRunNestedMessageLoop(new ViewHostMsg_RunBeforeUnloadConfirm(
2188 routing_id_, frame->document().url(), message, is_reload, 2188 routing_id_, frame->document().url(), message, is_reload,
2189 &success, &ignored_result)); 2189 &success, &ignored_result));
2190 return success; 2190 return success;
2191 } 2191 }
2192 2192
2193 void RenderViewImpl::requestAutocomplete(
2194 WebFrame* frame, const WebFormElement& form) {
2195 FOR_EACH_OBSERVER(
2196 RenderViewObserver, observers_, RequestAutocomplete(frame, form));
2197 }
2198
2193 void RenderViewImpl::showContextMenu( 2199 void RenderViewImpl::showContextMenu(
2194 WebFrame* frame, const WebContextMenuData& data) { 2200 WebFrame* frame, const WebContextMenuData& data) {
2195 // TODO(fsamuel): In the future, we might want the embedder to be able to 2201 // TODO(fsamuel): In the future, we might want the embedder to be able to
2196 // decide whether the guest can show a context menu or not. See 2202 // decide whether the guest can show a context menu or not. See
2197 // http://www.crbug.com/134207 2203 // http://www.crbug.com/134207
2198 if (GetGuestToEmbedderChannel()) 2204 if (GetGuestToEmbedderChannel())
2199 return; 2205 return;
2200 2206
2201 ContextMenuParams params(data); 2207 ContextMenuParams params(data);
2202 2208
(...skipping 4228 matching lines...) Expand 10 before | Expand all | Expand 10 after
6431 } 6437 }
6432 #endif 6438 #endif
6433 6439
6434 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( 6440 void RenderViewImpl::OnReleaseDisambiguationPopupDIB(
6435 TransportDIB::Handle dib_handle) { 6441 TransportDIB::Handle dib_handle) {
6436 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6442 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6437 RenderProcess::current()->ReleaseTransportDIB(dib); 6443 RenderProcess::current()->ReleaseTransportDIB(dib);
6438 } 6444 }
6439 6445
6440 } // namespace content 6446 } // namespace content
OLDNEW
« content/public/renderer/render_view_observer.h ('K') | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698