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

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

Issue 763013002: Get rid of the remaining uses of GraphicsLayer. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix diff Created 6 years 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/ChromeClientImpl.h ('k') | sky/engine/web/LinkHighlight.cpp » ('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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 { 334 {
335 if (m_webView->client()) 335 if (m_webView->client())
336 m_webView->client()->didChangeCursor(cursor); 336 m_webView->client()->didChangeCursor(cursor);
337 } 337 }
338 338
339 String ChromeClientImpl::acceptLanguages() 339 String ChromeClientImpl::acceptLanguages()
340 { 340 {
341 return m_webView->client()->acceptLanguages(); 341 return m_webView->client()->acceptLanguages();
342 } 342 }
343 343
344 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const
345 {
346 return m_webView->graphicsLayerFactory();
347 }
348
349 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer)
350 {
351 m_webView->setRootGraphicsLayer(rootLayer);
352 }
353
354 void ChromeClientImpl::setTouchAction(TouchAction touchAction) 344 void ChromeClientImpl::setTouchAction(TouchAction touchAction)
355 { 345 {
356 if (WebViewClient* client = m_webView->client()) { 346 if (WebViewClient* client = m_webView->client()) {
357 WebTouchAction webTouchAction = static_cast<WebTouchAction>(touchAction) ; 347 WebTouchAction webTouchAction = static_cast<WebTouchAction>(touchAction) ;
358 client->setTouchAction(webTouchAction); 348 client->setTouchAction(webTouchAction);
359 } 349 }
360 } 350 }
361 351
362 void ChromeClientImpl::willSetInputMethodState() 352 void ChromeClientImpl::willSetInputMethodState()
363 { 353 {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 webFrame->client()->forwardInputEvent(&webEvent); 389 webFrame->client()->forwardInputEvent(&webEvent);
400 } else if (event->isWheelEvent()) { 390 } else if (event->isWheelEvent()) {
401 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas t<WheelEvent*>(event)); 391 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas t<WheelEvent*>(event));
402 if (webEvent.type == WebInputEvent::Undefined) 392 if (webEvent.type == WebInputEvent::Undefined)
403 return; 393 return;
404 webFrame->client()->forwardInputEvent(&webEvent); 394 webFrame->client()->forwardInputEvent(&webEvent);
405 } 395 }
406 } 396 }
407 397
408 } // namespace blink 398 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/web/ChromeClientImpl.h ('k') | sky/engine/web/LinkHighlight.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698