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

Side by Side Diff: Source/core/inspector/InspectorOverlay.h

Issue 25735003: Add text autosizing override in the inspector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typeo Created 7 years, 2 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 | « no previous file | Source/core/inspector/InspectorOverlayPage.html » ('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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorOverlayPage.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698