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

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

Issue 365513002: Port identity_internals to mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up TestNavigationObserver. Created 6 years, 5 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/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 void RenderViewImpl::TransferActiveWheelFlingAnimation( 1333 void RenderViewImpl::TransferActiveWheelFlingAnimation(
1334 const blink::WebActiveWheelFlingParameters& params) { 1334 const blink::WebActiveWheelFlingParameters& params) {
1335 if (webview()) 1335 if (webview())
1336 webview()->transferActiveWheelFlingAnimation(params); 1336 webview()->transferActiveWheelFlingAnimation(params);
1337 } 1337 }
1338 1338
1339 bool RenderViewImpl::HasIMETextFocus() { 1339 bool RenderViewImpl::HasIMETextFocus() {
1340 return GetTextInputType() != ui::TEXT_INPUT_TYPE_NONE; 1340 return GetTextInputType() != ui::TEXT_INPUT_TYPE_NONE;
1341 } 1341 }
1342 1342
1343 void RenderViewImpl::WebUIMojoMainRan() {
1344 Send(new ViewHostMsg_WebUIMojoMainRan(routing_id()));
1345 }
1346
1343 bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) { 1347 bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
1344 WebFrame* main_frame = webview() ? webview()->mainFrame() : NULL; 1348 WebFrame* main_frame = webview() ? webview()->mainFrame() : NULL;
1345 if (main_frame) 1349 if (main_frame)
1346 GetContentClient()->SetActiveURL(main_frame->document().url()); 1350 GetContentClient()->SetActiveURL(main_frame->document().url());
1347 1351
1348 ObserverListBase<RenderViewObserver>::Iterator it(observers_); 1352 ObserverListBase<RenderViewObserver>::Iterator it(observers_);
1349 RenderViewObserver* observer; 1353 RenderViewObserver* observer;
1350 while ((observer = it.GetNext()) != NULL) 1354 while ((observer = it.GetNext()) != NULL)
1351 if (observer->OnMessageReceived(message)) 1355 if (observer->OnMessageReceived(message))
1352 return true; 1356 return true;
(...skipping 2959 matching lines...) Expand 10 before | Expand all | Expand 10 after
4312 std::vector<gfx::Size> sizes; 4316 std::vector<gfx::Size> sizes;
4313 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4317 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4314 if (!url.isEmpty()) 4318 if (!url.isEmpty())
4315 urls.push_back( 4319 urls.push_back(
4316 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4320 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4317 } 4321 }
4318 SendUpdateFaviconURL(urls); 4322 SendUpdateFaviconURL(urls);
4319 } 4323 }
4320 4324
4321 } // namespace content 4325 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698