OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_DATA_H_ | |
6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_DATA_H_ | |
7 | |
8 #include "ipc/ipc_message.h" | |
hans
2012/07/18 17:21:02
i guess this is for IPC::Message?
You could just f
aousterh
2012/07/20 11:18:52
Done.
| |
9 | |
10 namespace device_orientation { | |
11 | |
12 class DeviceData { | |
hans
2012/07/18 17:21:02
Should this class be RefCounted? (RefCountedThread
aousterh
2012/07/20 11:18:52
Done.
| |
13 public: | |
14 enum Type { | |
15 kTypeOrientation | |
16 }; | |
17 virtual ~DeviceData() {} | |
18 | |
19 virtual DeviceData* Clone() const = 0; | |
hans
2012/07/18 17:21:02
if we make it ref counted, we might not need to Cl
aousterh
2012/07/20 11:18:52
Done.
| |
20 virtual bool IsEmpty() const = 0; | |
21 virtual bool SignificantlyDifferentFrom(const DeviceData& other) const = 0; | |
22 virtual IPC::Message* CreateIPCMessage(int render_view_id) const = 0; | |
23 | |
24 static bool IsElementSignificantlyDifferent(bool can_provide_element1, | |
hans
2012/07/18 17:21:02
hmm, we might actually want to implement the notio
aousterh
2012/07/20 11:18:52
ok, i moved IsElementSignificantlyDifferent to the
| |
25 bool can_provide_element2, double element1, double element2); | |
26 }; | |
27 | |
28 } // namespace device_orientation | |
29 | |
30 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_DATA_H_ | |
OLD | NEW |