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

Side by Side Diff: Tools/DumpRenderTree/chromium/WebViewHost.cpp

Issue 14460010: Implement the Blink part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed Darin's comments Created 7 years, 7 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 /* 1 /*
2 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 { 527 {
528 m_editCommandName.clear(); 528 m_editCommandName.clear();
529 m_editCommandValue.clear(); 529 m_editCommandValue.clear();
530 } 530 }
531 531
532 void WebViewHost::setGamepadData(const WebGamepads& pads) 532 void WebViewHost::setGamepadData(const WebGamepads& pads)
533 { 533 {
534 webkit_support::SetGamepadData(pads); 534 webkit_support::SetGamepadData(pads);
535 } 535 }
536 536
537 void WebViewHost::setDeviceMotionProvider(WebDeviceMotionProvider* provider)
538 {
539 webkit_support::SetDeviceMotionProvider(provider);
540 }
541
537 void WebViewHost::printMessage(const std::string& message) 542 void WebViewHost::printMessage(const std::string& message)
538 { 543 {
539 printf("%s", message.c_str()); 544 printf("%s", message.c_str());
540 } 545 }
541 546
542 void WebViewHost::postTask(WebTask* task) 547 void WebViewHost::postTask(WebTask* task)
543 { 548 {
544 ::postTask(task); 549 ::postTask(task);
545 } 550 }
546 551
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 webView()->willExitFullScreen(); 1009 webView()->willExitFullScreen();
1005 webView()->didExitFullScreen(); 1010 webView()->didExitFullScreen();
1006 } 1011 }
1007 1012
1008 webkit_support::TestMediaStreamClient* WebViewHost::testMediaStreamClient() 1013 webkit_support::TestMediaStreamClient* WebViewHost::testMediaStreamClient()
1009 { 1014 {
1010 if (!m_testMediaStreamClient.get()) 1015 if (!m_testMediaStreamClient.get())
1011 m_testMediaStreamClient = adoptPtr(new webkit_support::TestMediaStreamCl ient()); 1016 m_testMediaStreamClient = adoptPtr(new webkit_support::TestMediaStreamCl ient());
1012 return m_testMediaStreamClient.get(); 1017 return m_testMediaStreamClient.get();
1013 } 1018 }
OLDNEW
« Source/Platform/chromium/public/Platform.h ('K') | « Tools/DumpRenderTree/chromium/WebViewHost.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698