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

Side by Side Diff: sky/engine/web/ChromeClientImpl.cpp

Issue 871643003: Remove PageWidgetDelegate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/web/BUILD.gn ('k') | sky/engine/web/PageWidgetDelegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 return; 212 return;
213 213
214 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli cy); 214 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli cy);
215 if (policy == WebNavigationPolicyIgnore) 215 if (policy == WebNavigationPolicyIgnore)
216 policy = getNavigationPolicy(); 216 policy = getNavigationPolicy();
217 m_webView->client()->show(policy); 217 m_webView->client()->show(policy);
218 } 218 }
219 219
220 bool ChromeClientImpl::shouldReportDetailedMessageForSource(const String& url) 220 bool ChromeClientImpl::shouldReportDetailedMessageForSource(const String& url)
221 { 221 {
222 WebLocalFrameImpl* webframe = m_webView->localFrameRootTemporary(); 222 WebLocalFrameImpl* webframe = m_webView->mainFrameImpl();
223 return webframe->client() && webframe->client()->shouldReportDetailedMessage ForSource(url); 223 return webframe->client() && webframe->client()->shouldReportDetailedMessage ForSource(url);
224 } 224 }
225 225
226 inline static String messageLevelAsString(MessageLevel level) 226 inline static String messageLevelAsString(MessageLevel level)
227 { 227 {
228 switch(level) { 228 switch(level) {
229 case DebugMessageLevel: 229 case DebugMessageLevel:
230 return "DEBUG"; 230 return "DEBUG";
231 case LogMessageLevel: 231 case LogMessageLevel:
232 return "LOG"; 232 return "LOG";
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 webFrame->client()->forwardInputEvent(&webEvent); 365 webFrame->client()->forwardInputEvent(&webEvent);
366 } else if (event->isWheelEvent()) { 366 } else if (event->isWheelEvent()) {
367 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas t<WheelEvent*>(event)); 367 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas t<WheelEvent*>(event));
368 if (webEvent.type == WebInputEvent::Undefined) 368 if (webEvent.type == WebInputEvent::Undefined)
369 return; 369 return;
370 webFrame->client()->forwardInputEvent(&webEvent); 370 webFrame->client()->forwardInputEvent(&webEvent);
371 } 371 }
372 } 372 }
373 373
374 } // namespace blink 374 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/web/BUILD.gn ('k') | sky/engine/web/PageWidgetDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698