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

Side by Side Diff: public/platform/Platform.h

Issue 315693002: Use WebViewClient instead of BlinkPlatform for screen lock. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 6 years, 6 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 // Sets a Listener to listen for device orientation data updates. 636 // Sets a Listener to listen for device orientation data updates.
637 // If null, the platform stops providing device orientation data to the curr ent listener. 637 // If null, the platform stops providing device orientation data to the curr ent listener.
638 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { } 638 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { }
639 639
640 // Sets a Listener to listen for device light data updates. 640 // Sets a Listener to listen for device light data updates.
641 // If null, the platform stops providing device light data to the current li stener. 641 // If null, the platform stops providing device light data to the current li stener.
642 virtual void setDeviceLightListener(blink::WebDeviceLightListener*) { } 642 virtual void setDeviceLightListener(blink::WebDeviceLightListener*) { }
643 643
644 644
645 // Screen Orientation ------------------------------------------------- 645 // Screen Orientation -------------------------------------------------
646 // FIXME: this is meant to be removed when the content layer will be updated .
646 647
647 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { }
648 virtual void lockOrientation(WebScreenOrientationLockType) { } 648 virtual void lockOrientation(WebScreenOrientationLockType) { }
649 // Request a screen orientation lock and pass a |callback| object to be used 649 // Request a screen orientation lock and pass a |callback| object to be used
650 // to notify of success/failure. The |callback| parameter is expected to be 650 // to notify of success/failure. The |callback| parameter is expected to be
651 // owned by the implementation. 651 // owned by the implementation.
652 virtual void lockOrientation(WebScreenOrientationLockType orientation, WebLo ckOrientationCallback* callback) 652 virtual void lockOrientation(WebScreenOrientationLockType orientation, WebLo ckOrientationCallback* callback)
653 { 653 {
654 // FIXME: remove this when 654 // FIXME: remove this when
655 // lockOrientation(orientation, callback) will be handled in Chromium. 655 // lockOrientation(orientation, callback) will be handled in Chromium.
656 lockOrientation(orientation); 656 lockOrientation(orientation);
657 657
(...skipping 20 matching lines...) Expand all
678 virtual WebDatabaseObserver* databaseObserver() { return 0; } 678 virtual WebDatabaseObserver* databaseObserver() { return 0; }
679 679
680 680
681 protected: 681 protected:
682 virtual ~Platform() { } 682 virtual ~Platform() { }
683 }; 683 };
684 684
685 } // namespace blink 685 } // namespace blink
686 686
687 #endif 687 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698