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

Side by Side Diff: Source/web/DevToolsEmulator.h

Issue 1343843004: [DevTools] Emulate hover and pointer types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed settings getters Created 5 years, 3 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/web/DevToolsEmulator.cpp » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 DevToolsEmulator_h 5 #ifndef DevToolsEmulator_h
6 #define DevToolsEmulator_h 6 #define DevToolsEmulator_h
7 7
8 #include "core/css/PointerProperties.h"
8 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
9 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
10 #include "wtf/OwnPtr.h" 11 #include "wtf/OwnPtr.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class InspectorEmulationAgent; 15 class InspectorEmulationAgent;
15 class IntPoint; 16 class IntPoint;
16 class WebInputEvent; 17 class WebInputEvent;
17 class WebViewImpl; 18 class WebViewImpl;
(...skipping 12 matching lines...) Expand all
30 // Settings overrides. 31 // Settings overrides.
31 void setTextAutosizingEnabled(bool); 32 void setTextAutosizingEnabled(bool);
32 void setDeviceScaleAdjustment(float); 33 void setDeviceScaleAdjustment(float);
33 void setPreferCompositingToLCDTextEnabled(bool); 34 void setPreferCompositingToLCDTextEnabled(bool);
34 void setUseMobileViewportStyle(bool); 35 void setUseMobileViewportStyle(bool);
35 void setPluginsEnabled(bool); 36 void setPluginsEnabled(bool);
36 void setScriptEnabled(bool); 37 void setScriptEnabled(bool);
37 void setDoubleTapToZoomEnabled(bool); 38 void setDoubleTapToZoomEnabled(bool);
38 bool doubleTapToZoomEnabled() const; 39 bool doubleTapToZoomEnabled() const;
39 void setHidePinchScrollbarsNearMinScale(bool); 40 void setHidePinchScrollbarsNearMinScale(bool);
41 void setAvailablePointerTypes(int);
42 void setPrimaryPointerType(PointerType);
43 void setAvailableHoverTypes(int);
44 void setPrimaryHoverType(HoverType);
40 45
41 // Emulation. 46 // Emulation.
42 void enableDeviceEmulation(const WebDeviceEmulationParams&); 47 void enableDeviceEmulation(const WebDeviceEmulationParams&);
43 void disableDeviceEmulation(); 48 void disableDeviceEmulation();
44 bool deviceEmulationEnabled() { return m_deviceMetricsEnabled; } 49 bool deviceEmulationEnabled() { return m_deviceMetricsEnabled; }
45 void setTouchEventEmulationEnabled(bool); 50 void setTouchEventEmulationEnabled(bool);
46 bool handleInputEvent(const WebInputEvent&); 51 bool handleInputEvent(const WebInputEvent&);
47 void setScriptExecutionDisabled(bool); 52 void setScriptExecutionDisabled(bool);
48 53
49 private: 54 private:
50 explicit DevToolsEmulator(WebViewImpl*); 55 explicit DevToolsEmulator(WebViewImpl*);
51 56
52 void enableMobileEmulation(); 57 void enableMobileEmulation();
53 void disableMobileEmulation(); 58 void disableMobileEmulation();
54 59
55 WebViewImpl* m_webViewImpl; 60 WebViewImpl* m_webViewImpl;
56 RawPtrWillBeMember<InspectorEmulationAgent> m_emulationAgent; 61 RawPtrWillBeMember<InspectorEmulationAgent> m_emulationAgent;
57 62
58 bool m_deviceMetricsEnabled; 63 bool m_deviceMetricsEnabled;
59 bool m_emulateMobileEnabled; 64 bool m_emulateMobileEnabled;
60 bool m_isOverlayScrollbarsEnabled; 65 bool m_isOverlayScrollbarsEnabled;
61 float m_originalDefaultMinimumPageScaleFactor; 66 float m_originalDefaultMinimumPageScaleFactor;
62 float m_originalDefaultMaximumPageScaleFactor; 67 float m_originalDefaultMaximumPageScaleFactor;
63 bool m_embedderTextAutosizingEnabled; 68 bool m_embedderTextAutosizingEnabled;
64 float m_embedderDeviceScaleAdjustment; 69 float m_embedderDeviceScaleAdjustment;
65 bool m_embedderPreferCompositingToLCDTextEnabled; 70 bool m_embedderPreferCompositingToLCDTextEnabled;
66 bool m_embedderUseMobileViewport; 71 bool m_embedderUseMobileViewport;
67 bool m_embedderPluginsEnabled; 72 bool m_embedderPluginsEnabled;
73 int m_embedderAvailablePointerTypes;
74 PointerType m_embedderPrimaryPointerType;
75 int m_embedderAvailableHoverTypes;
76 HoverType m_embedderPrimaryHoverType;
68 77
69 bool m_touchEventEmulationEnabled; 78 bool m_touchEventEmulationEnabled;
70 bool m_doubleTapToZoomEnabled; 79 bool m_doubleTapToZoomEnabled;
71 bool m_originalTouchEnabled; 80 bool m_originalTouchEnabled;
72 bool m_originalDeviceSupportsMouse; 81 bool m_originalDeviceSupportsMouse;
73 bool m_originalDeviceSupportsTouch; 82 bool m_originalDeviceSupportsTouch;
74 int m_originalMaxTouchPoints; 83 int m_originalMaxTouchPoints;
75 OwnPtr<IntPoint> m_lastPinchAnchorCss; 84 OwnPtr<IntPoint> m_lastPinchAnchorCss;
76 OwnPtr<IntPoint> m_lastPinchAnchorDip; 85 OwnPtr<IntPoint> m_lastPinchAnchorDip;
77 86
78 bool m_embedderScriptEnabled; 87 bool m_embedderScriptEnabled;
79 bool m_scriptExecutionDisabled; 88 bool m_scriptExecutionDisabled;
80 bool m_hidePinchScrollbarsNearMinScale; 89 bool m_hidePinchScrollbarsNearMinScale;
81 }; 90 };
82 91
83 } // namespace blink 92 } // namespace blink
84 93
85 #endif 94 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/DevToolsEmulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698