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

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

Issue 219463003: Screen Orientation API: cleanup, simplify and fix implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 24 matching lines...) Expand all
35 #include <windows.h> 35 #include <windows.h>
36 #endif 36 #endif
37 37
38 #include "WebAudioDevice.h" 38 #include "WebAudioDevice.h"
39 #include "WebCommon.h" 39 #include "WebCommon.h"
40 #include "WebData.h" 40 #include "WebData.h"
41 #include "WebGamepadListener.h" 41 #include "WebGamepadListener.h"
42 #include "WebGamepads.h" 42 #include "WebGamepads.h"
43 #include "WebGraphicsContext3D.h" 43 #include "WebGraphicsContext3D.h"
44 #include "WebLocalizedString.h" 44 #include "WebLocalizedString.h"
45 // FIXME: WebScreenOrientation.h is only needed because Chrome assumes it is the re.
45 #include "WebScreenOrientation.h" 46 #include "WebScreenOrientation.h"
47 #include "WebScreenOrientationLockType.h"
46 #include "WebSpeechSynthesizer.h" 48 #include "WebSpeechSynthesizer.h"
47 #include "WebStorageQuotaCallbacks.h" 49 #include "WebStorageQuotaCallbacks.h"
48 #include "WebStorageQuotaType.h" 50 #include "WebStorageQuotaType.h"
49 #include "WebString.h" 51 #include "WebString.h"
50 #include "WebURLError.h" 52 #include "WebURLError.h"
51 #include "WebVector.h" 53 #include "WebVector.h"
52 54
53 class GrContext; 55 class GrContext;
54 56
55 namespace blink { 57 namespace blink {
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 // If null, the platform stops providing device motion data to the current l istener. 605 // If null, the platform stops providing device motion data to the current l istener.
604 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } 606 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { }
605 607
606 // Sets a Listener to listen for device orientation data updates. 608 // Sets a Listener to listen for device orientation data updates.
607 // If null, the platform stops proving device orientation data to the curren t listener. 609 // If null, the platform stops proving device orientation data to the curren t listener.
608 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { } 610 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { }
609 611
610 // Screen Orientation ------------------------------------------------- 612 // Screen Orientation -------------------------------------------------
611 613
612 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { } 614 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { }
613 virtual void lockOrientation(WebScreenOrientations) { } 615 virtual void lockOrientation(WebScreenOrientationLockType) { }
614 virtual void unlockOrientation() { } 616 virtual void unlockOrientation() { }
615 617
616 618
617 // Quota ----------------------------------------------------------- 619 // Quota -----------------------------------------------------------
618 620
619 // Queries the storage partition's storage usage and quota information. 621 // Queries the storage partition's storage usage and quota information.
620 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called 622 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called
621 // with the current usage and quota information for the partition. When 623 // with the current usage and quota information for the partition. When
622 // an error occurs WebStorageQuotaCallbacks::didFail is called with an 624 // an error occurs WebStorageQuotaCallbacks::didFail is called with an
623 // error code. 625 // error code.
624 virtual void queryStorageUsageAndQuota( 626 virtual void queryStorageUsageAndQuota(
625 const WebURL& storagePartition, 627 const WebURL& storagePartition,
626 WebStorageQuotaType, 628 WebStorageQuotaType,
627 WebStorageQuotaCallbacks) { } 629 WebStorageQuotaCallbacks) { }
628 630
629 631
630 // WebDatabase -------------------------------------------------------- 632 // WebDatabase --------------------------------------------------------
631 633
632 virtual WebDatabaseObserver* databaseObserver() { return 0; } 634 virtual WebDatabaseObserver* databaseObserver() { return 0; }
633 635
634 636
635 protected: 637 protected:
636 virtual ~Platform() { } 638 virtual ~Platform() { }
637 }; 639 };
638 640
639 } // namespace blink 641 } // namespace blink
640 642
641 #endif 643 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698