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

Side by Side Diff: content/renderer/device_orientation_dispatcher.h

Issue 10735052: Adds temporary function lastOrientationNew (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | content/renderer/device_orientation_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_
6 #define CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ 6 #define CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_
7 7
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC lient.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC lient.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientation. h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientation. h"
10 10
(...skipping 14 matching lines...) Expand all
25 // RenderView::Observer implementation. 25 // RenderView::Observer implementation.
26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 26 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
27 27
28 // From WebKit::WebDeviceOrientationClient. 28 // From WebKit::WebDeviceOrientationClient.
29 virtual void setController( 29 virtual void setController(
30 WebKit::WebDeviceOrientationController* controller); 30 WebKit::WebDeviceOrientationController* controller);
31 virtual void startUpdating(); 31 virtual void startUpdating();
32 virtual void stopUpdating(); 32 virtual void stopUpdating();
33 virtual WebKit::WebDeviceOrientation lastOrientation() const; 33 virtual WebKit::WebDeviceOrientation lastOrientation() const;
34 34
35 // TODO(aousterh): modify lastOrientation to return a
36 // WebKit::WebDeviceOrientationData then remove this function
37 // once it is no longer called from WebKit
38 virtual WebKit::WebDeviceOrientation lastOrientationNew() const;
39
35 void OnDeviceOrientationUpdated( 40 void OnDeviceOrientationUpdated(
36 const DeviceOrientationMsg_Updated_Params& p); 41 const DeviceOrientationMsg_Updated_Params& p);
37 42
38 scoped_ptr<WebKit::WebDeviceOrientationController> controller_; 43 scoped_ptr<WebKit::WebDeviceOrientationController> controller_;
39 WebKit::WebDeviceOrientation last_orientation_; 44 WebKit::WebDeviceOrientation last_orientation_;
40 bool started_; 45 bool started_;
41 }; 46 };
42 47
43 #endif // CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_ 48 #endif // CONTENT_RENDERER_DEVICE_ORIENTATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/device_orientation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698