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

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

Issue 23085004: DevTools: handle gesture tap event while in inspecting element mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorOverlay.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 /* 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 namespace WebCore { 42 namespace WebCore {
43 43
44 class Color; 44 class Color;
45 class EmptyChromeClient; 45 class EmptyChromeClient;
46 class GraphicsContext; 46 class GraphicsContext;
47 class InspectorClient; 47 class InspectorClient;
48 class InspectorOverlayHost; 48 class InspectorOverlayHost;
49 class JSONValue; 49 class JSONValue;
50 class Node; 50 class Node;
51 class Page; 51 class Page;
52 class PlatformGestureEvent;
52 class PlatformMouseEvent; 53 class PlatformMouseEvent;
53 class PlatformTouchEvent; 54 class PlatformTouchEvent;
54 55
55 struct HighlightConfig { 56 struct HighlightConfig {
56 WTF_MAKE_FAST_ALLOCATED; 57 WTF_MAKE_FAST_ALLOCATED;
57 public: 58 public:
58 Color content; 59 Color content;
59 Color contentOutline; 60 Color contentOutline;
60 Color padding; 61 Color padding;
61 Color border; 62 Color border;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return adoptPtr(new InspectorOverlay(page, client)); 120 return adoptPtr(new InspectorOverlay(page, client));
120 } 121 }
121 ~InspectorOverlay(); 122 ~InspectorOverlay();
122 123
123 void update(); 124 void update();
124 void hide(); 125 void hide();
125 void paint(GraphicsContext&); 126 void paint(GraphicsContext&);
126 void drawOutline(GraphicsContext*, const LayoutRect&, const Color&); 127 void drawOutline(GraphicsContext*, const LayoutRect&, const Color&);
127 void getHighlight(Highlight*) const; 128 void getHighlight(Highlight*) const;
128 void resize(const IntSize&); 129 void resize(const IntSize&);
130 bool handleGestureEvent(const PlatformGestureEvent&);
129 bool handleMouseEvent(const PlatformMouseEvent&); 131 bool handleMouseEvent(const PlatformMouseEvent&);
130 bool handleTouchEvent(const PlatformTouchEvent&); 132 bool handleTouchEvent(const PlatformTouchEvent&);
131 133
132 void setPausedInDebuggerMessage(const String*); 134 void setPausedInDebuggerMessage(const String*);
133 void setInspectModeEnabled(bool); 135 void setInspectModeEnabled(bool);
134 void setOverride(OverrideType, bool); 136 void setOverride(OverrideType, bool);
135 void setOverridesTopOffset(int); 137 void setOverridesTopOffset(int);
136 138
137 void hideHighlight(); 139 void hideHighlight();
138 void highlightNode(Node*, Node* eventTarget, const HighlightConfig&); 140 void highlightNode(Node*, Node* eventTarget, const HighlightConfig&);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 bool m_drawViewSizeWithGrid; 184 bool m_drawViewSizeWithGrid;
183 Timer<InspectorOverlay> m_timer; 185 Timer<InspectorOverlay> m_timer;
184 unsigned m_overrides; 186 unsigned m_overrides;
185 int m_overridesTopOffset; 187 int m_overridesTopOffset;
186 }; 188 };
187 189
188 } // namespace WebCore 190 } // namespace WebCore
189 191
190 192
191 #endif // InspectorOverlay_h 193 #endif // InspectorOverlay_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698