| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 class InspectorOverlay { | 106 class InspectorOverlay { |
| 107 WTF_MAKE_FAST_ALLOCATED; | 107 WTF_MAKE_FAST_ALLOCATED; |
| 108 public: | 108 public: |
| 109 // This must be kept in sync with the overrideEntries array in InspectorOver
layPage.html. | 109 // This must be kept in sync with the overrideEntries array in InspectorOver
layPage.html. |
| 110 enum OverrideType { | 110 enum OverrideType { |
| 111 UserAgentOverride = 1, | 111 UserAgentOverride = 1, |
| 112 DeviceMetricsOverride = 1 << 1, | 112 DeviceMetricsOverride = 1 << 1, |
| 113 GeolocationOverride = 1 << 2, | 113 GeolocationOverride = 1 << 2, |
| 114 DeviceOrientationOverride = 1 << 3, | 114 DeviceOrientationOverride = 1 << 3, |
| 115 TouchOverride = 1 << 4, | 115 TouchOverride = 1 << 4, |
| 116 CSSMediaOverride = 1 << 5 | 116 CSSMediaOverride = 1 << 5, |
| 117 TextAutosizingOverride = 1 << 6 |
| 117 }; | 118 }; |
| 118 static PassOwnPtr<InspectorOverlay> create(Page* page, InspectorClient* clie
nt) | 119 static PassOwnPtr<InspectorOverlay> create(Page* page, InspectorClient* clie
nt) |
| 119 { | 120 { |
| 120 return adoptPtr(new InspectorOverlay(page, client)); | 121 return adoptPtr(new InspectorOverlay(page, client)); |
| 121 } | 122 } |
| 122 | 123 |
| 123 ~InspectorOverlay(); | 124 ~InspectorOverlay(); |
| 124 | 125 |
| 125 void update(); | 126 void update(); |
| 126 void hide(); | 127 void hide(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 bool m_drawViewSizeWithGrid; | 187 bool m_drawViewSizeWithGrid; |
| 187 Timer<InspectorOverlay> m_timer; | 188 Timer<InspectorOverlay> m_timer; |
| 188 unsigned m_overrides; | 189 unsigned m_overrides; |
| 189 int m_overridesTopOffset; | 190 int m_overridesTopOffset; |
| 190 }; | 191 }; |
| 191 | 192 |
| 192 } // namespace WebCore | 193 } // namespace WebCore |
| 193 | 194 |
| 194 | 195 |
| 195 #endif // InspectorOverlay_h | 196 #endif // InspectorOverlay_h |
| OLD | NEW |