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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 FloatPoint rendererPoint = m_shapeOutsideInfo.shapeToRendererPoint(point
); | 112 FloatPoint rendererPoint = m_shapeOutsideInfo.shapeToRendererPoint(point
); |
113 return m_view.contentsToRootView(roundedIntPoint(m_renderer.localToAbsol
ute(rendererPoint))); | 113 return m_view.contentsToRootView(roundedIntPoint(m_renderer.localToAbsol
ute(rendererPoint))); |
114 } | 114 } |
115 | 115 |
116 private: | 116 private: |
117 FrameView& m_view; | 117 FrameView& m_view; |
118 RenderObject& m_renderer; | 118 RenderObject& m_renderer; |
119 const ShapeOutsideInfo& m_shapeOutsideInfo; | 119 const ShapeOutsideInfo& m_shapeOutsideInfo; |
120 }; | 120 }; |
121 | 121 |
122 class InspectorOverlayChromeClient FINAL: public EmptyChromeClient { | 122 class InspectorOverlayChromeClient final: public EmptyChromeClient { |
123 public: | 123 public: |
124 InspectorOverlayChromeClient(ChromeClient& client, InspectorOverlay* overlay
) | 124 InspectorOverlayChromeClient(ChromeClient& client, InspectorOverlay* overlay
) |
125 : m_client(client) | 125 : m_client(client) |
126 , m_overlay(overlay) | 126 , m_overlay(overlay) |
127 { } | 127 { } |
128 | 128 |
129 virtual void setCursor(const Cursor& cursor) OVERRIDE | 129 virtual void setCursor(const Cursor& cursor) override |
130 { | 130 { |
131 m_client.setCursor(cursor); | 131 m_client.setCursor(cursor); |
132 } | 132 } |
133 | 133 |
134 virtual void setToolTip(const String& tooltip, TextDirection direction) OVER
RIDE | 134 virtual void setToolTip(const String& tooltip, TextDirection direction) over
ride |
135 { | 135 { |
136 m_client.setToolTip(tooltip, direction); | 136 m_client.setToolTip(tooltip, direction); |
137 } | 137 } |
138 | 138 |
139 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE | 139 virtual void invalidateContentsAndRootView(const IntRect&) override |
140 { | 140 { |
141 m_overlay->invalidate(); | 141 m_overlay->invalidate(); |
142 } | 142 } |
143 | 143 |
144 virtual void invalidateContentsForSlowScroll(const IntRect&) OVERRIDE | 144 virtual void invalidateContentsForSlowScroll(const IntRect&) override |
145 { | 145 { |
146 m_overlay->invalidate(); | 146 m_overlay->invalidate(); |
147 } | 147 } |
148 | 148 |
149 private: | 149 private: |
150 ChromeClient& m_client; | 150 ChromeClient& m_client; |
151 InspectorOverlay* m_overlay; | 151 InspectorOverlay* m_overlay; |
152 }; | 152 }; |
153 | 153 |
154 static Path quadToPath(const FloatQuad& quad) | 154 static Path quadToPath(const FloatQuad& quad) |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 hideHighlight(); | 846 hideHighlight(); |
847 } | 847 } |
848 | 848 |
849 void InspectorOverlay::startedRecordingProfile() | 849 void InspectorOverlay::startedRecordingProfile() |
850 { | 850 { |
851 if (!m_activeProfilerCount++) | 851 if (!m_activeProfilerCount++) |
852 freePage(); | 852 freePage(); |
853 } | 853 } |
854 | 854 |
855 } // namespace blink | 855 } // namespace blink |
OLD | NEW |