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

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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } 610 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { }
609 611
610 // Sets a Listener to listen for device orientation data updates. 612 // Sets a Listener to listen for device orientation data updates.
611 // If null, the platform stops proving device orientation data to the curren t listener. 613 // If null, the platform stops proving device orientation data to the curren t listener.
612 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { } 614 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { }
613 615
614 // Screen Orientation ------------------------------------------------- 616 // Screen Orientation -------------------------------------------------
615 617
616 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { } 618 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { }
617 virtual void lockOrientation(WebScreenOrientations) { } 619 virtual void lockOrientation(WebScreenOrientations) { }
620 virtual void lockOrientation(WebScreenOrientationLockType) { }
618 virtual void unlockOrientation() { } 621 virtual void unlockOrientation() { }
619 622
620 623
621 // Quota ----------------------------------------------------------- 624 // Quota -----------------------------------------------------------
622 625
623 // Queries the storage partition's storage usage and quota information. 626 // Queries the storage partition's storage usage and quota information.
624 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called 627 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called
625 // with the current usage and quota information for the partition. When 628 // with the current usage and quota information for the partition. When
626 // an error occurs WebStorageQuotaCallbacks::didFail is called with an 629 // an error occurs WebStorageQuotaCallbacks::didFail is called with an
627 // error code. 630 // error code.
628 virtual void queryStorageUsageAndQuota( 631 virtual void queryStorageUsageAndQuota(
629 const WebURL& storagePartition, 632 const WebURL& storagePartition,
630 WebStorageQuotaType, 633 WebStorageQuotaType,
631 WebStorageQuotaCallbacks) { } 634 WebStorageQuotaCallbacks) { }
632 635
633 636
634 // WebDatabase -------------------------------------------------------- 637 // WebDatabase --------------------------------------------------------
635 638
636 virtual WebDatabaseObserver* databaseObserver() { return 0; } 639 virtual WebDatabaseObserver* databaseObserver() { return 0; }
637 640
638 641
639 protected: 642 protected:
640 virtual ~Platform() { } 643 virtual ~Platform() { }
641 }; 644 };
642 645
643 } // namespace blink 646 } // namespace blink
644 647
645 #endif 648 #endif
OLDNEW
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp ('k') | public/platform/WebScreenOrientation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698