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

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: made WebDeviceMotionData more "POD-ish" 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::setDeviceMotionHandler(WebDeviceMotionHandler* handler)
538 {
539 // FIXME: Uncomment this when the content-side plumbing is checked in.
540 // webkit_support::SetDeviceMotionHandler(handler);
541 }
542
537 void WebViewHost::printMessage(const std::string& message) 543 void WebViewHost::printMessage(const std::string& message)
538 { 544 {
539 printf("%s", message.c_str()); 545 printf("%s", message.c_str());
540 } 546 }
541 547
542 void WebViewHost::postTask(WebTask* task) 548 void WebViewHost::postTask(WebTask* task)
543 { 549 {
544 ::postTask(task); 550 ::postTask(task);
545 } 551 }
546 552
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 webView()->willExitFullScreen(); 1010 webView()->willExitFullScreen();
1005 webView()->didExitFullScreen(); 1011 webView()->didExitFullScreen();
1006 } 1012 }
1007 1013
1008 webkit_support::TestMediaStreamClient* WebViewHost::testMediaStreamClient() 1014 webkit_support::TestMediaStreamClient* WebViewHost::testMediaStreamClient()
1009 { 1015 {
1010 if (!m_testMediaStreamClient.get()) 1016 if (!m_testMediaStreamClient.get())
1011 m_testMediaStreamClient = adoptPtr(new webkit_support::TestMediaStreamCl ient()); 1017 m_testMediaStreamClient = adoptPtr(new webkit_support::TestMediaStreamCl ient());
1012 return m_testMediaStreamClient.get(); 1018 return m_testMediaStreamClient.get();
1013 } 1019 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698