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

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

Issue 169403006: Screen Orientation API: screen.orientation & orientationchange event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | public/platform/WebScreenOrientation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 class WebMediaStreamCenter; 76 class WebMediaStreamCenter;
77 class WebMediaStreamCenterClient; 77 class WebMediaStreamCenterClient;
78 class WebMessagePortChannel; 78 class WebMessagePortChannel;
79 class WebMimeRegistry; 79 class WebMimeRegistry;
80 class WebPluginListBuilder; 80 class WebPluginListBuilder;
81 class WebPrescientNetworking; 81 class WebPrescientNetworking;
82 class WebPublicSuffixList; 82 class WebPublicSuffixList;
83 class WebRTCPeerConnectionHandler; 83 class WebRTCPeerConnectionHandler;
84 class WebRTCPeerConnectionHandlerClient; 84 class WebRTCPeerConnectionHandlerClient;
85 class WebSandboxSupport; 85 class WebSandboxSupport;
86 class WebScreenOrientationListener;
86 class WebSocketHandle; 87 class WebSocketHandle;
87 class WebSocketStreamHandle; 88 class WebSocketStreamHandle;
88 class WebSpeechSynthesizer; 89 class WebSpeechSynthesizer;
89 class WebSpeechSynthesizerClient; 90 class WebSpeechSynthesizerClient;
90 class WebStorageNamespace; 91 class WebStorageNamespace;
91 struct WebFloatPoint; 92 struct WebFloatPoint;
92 class WebThemeEngine; 93 class WebThemeEngine;
93 class WebThread; 94 class WebThread;
94 class WebURL; 95 class WebURL;
95 class WebURLLoader; 96 class WebURLLoader;
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 // Device Motion / Orientation ---------------------------------------- 599 // Device Motion / Orientation ----------------------------------------
599 600
600 // Sets a Listener to listen for device motion data updates. 601 // Sets a Listener to listen for device motion data updates.
601 // If null, the platform stops providing device motion data to the current l istener. 602 // If null, the platform stops providing device motion data to the current l istener.
602 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } 603 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { }
603 604
604 // Sets a Listener to listen for device orientation data updates. 605 // Sets a Listener to listen for device orientation data updates.
605 // If null, the platform stops proving device orientation data to the curren t listener. 606 // If null, the platform stops proving device orientation data to the curren t listener.
606 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { } 607 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { }
607 608
609 // Screen Orientation -------------------------------------------------
610
611 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { }
612
608 613
609 // Quota ----------------------------------------------------------- 614 // Quota -----------------------------------------------------------
610 615
611 // Queries the storage partition's storage usage and quota information. 616 // Queries the storage partition's storage usage and quota information.
612 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called 617 // WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota will be called
613 // with the current usage and quota information for the partition. When 618 // with the current usage and quota information for the partition. When
614 // an error occurs WebStorageQuotaCallbacks::didFail is called with an 619 // an error occurs WebStorageQuotaCallbacks::didFail is called with an
615 // error code. 620 // error code.
616 virtual void queryStorageUsageAndQuota( 621 virtual void queryStorageUsageAndQuota(
617 const WebURL& storagePartition, 622 const WebURL& storagePartition,
618 WebStorageQuotaType, 623 WebStorageQuotaType,
619 WebStorageQuotaCallbacks) { } 624 WebStorageQuotaCallbacks) { }
620 625
621 626
622 // WebDatabase -------------------------------------------------------- 627 // WebDatabase --------------------------------------------------------
623 628
624 virtual WebDatabaseObserver* databaseObserver() { return 0; } 629 virtual WebDatabaseObserver* databaseObserver() { return 0; }
625 630
626 631
627 protected: 632 protected:
628 virtual ~Platform() { } 633 virtual ~Platform() { }
629 }; 634 };
630 635
631 } // namespace blink 636 } // namespace blink
632 637
633 #endif 638 #endif
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | public/platform/WebScreenOrientation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698