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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #include "core/rendering/style/RenderStyleConstants.h" | 52 #include "core/rendering/style/RenderStyleConstants.h" |
53 #include "platform/JSONValues.h" | 53 #include "platform/JSONValues.h" |
54 #include "platform/PlatformMouseEvent.h" | 54 #include "platform/PlatformMouseEvent.h" |
55 #include "platform/graphics/GraphicsContextStateSaver.h" | 55 #include "platform/graphics/GraphicsContextStateSaver.h" |
56 #include "wtf/text/StringBuilder.h" | 56 #include "wtf/text/StringBuilder.h" |
57 | 57 |
58 namespace WebCore { | 58 namespace WebCore { |
59 | 59 |
60 namespace { | 60 namespace { |
61 | 61 |
62 class InspectorOverlayChromeClient: public EmptyChromeClient { | 62 class InspectorOverlayChromeClient FINAL: public EmptyChromeClient { |
63 public: | 63 public: |
64 InspectorOverlayChromeClient(ChromeClient& client, InspectorOverlay* overlay
) | 64 InspectorOverlayChromeClient(ChromeClient& client, InspectorOverlay* overlay
) |
65 : m_client(client) | 65 : m_client(client) |
66 , m_overlay(overlay) | 66 , m_overlay(overlay) |
67 { } | 67 { } |
68 | 68 |
69 virtual void setCursor(const Cursor& cursor) | 69 virtual void setCursor(const Cursor& cursor) OVERRIDE |
70 { | 70 { |
71 m_client.setCursor(cursor); | 71 m_client.setCursor(cursor); |
72 } | 72 } |
73 | 73 |
74 virtual void setToolTip(const String& tooltip, TextDirection direction) | 74 virtual void setToolTip(const String& tooltip, TextDirection direction) OVER
RIDE |
75 { | 75 { |
76 m_client.setToolTip(tooltip, direction); | 76 m_client.setToolTip(tooltip, direction); |
77 } | 77 } |
78 | 78 |
79 virtual void invalidateRootView(const IntRect& rect) | 79 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE |
80 { | 80 { |
81 m_overlay->invalidate(); | 81 m_overlay->invalidate(); |
82 } | 82 } |
83 | 83 |
84 virtual void invalidateContentsAndRootView(const IntRect& rect) | 84 virtual void invalidateContentsForSlowScroll(const IntRect&) OVERRIDE |
85 { | 85 { |
86 m_overlay->invalidate(); | 86 m_overlay->invalidate(); |
87 } | 87 } |
88 | |
89 virtual void invalidateContentsForSlowScroll(const IntRect& rect) | |
90 { | |
91 m_overlay->invalidate(); | |
92 } | |
93 | 88 |
94 private: | 89 private: |
95 ChromeClient& m_client; | 90 ChromeClient& m_client; |
96 InspectorOverlay* m_overlay; | 91 InspectorOverlay* m_overlay; |
97 }; | 92 }; |
98 | 93 |
99 Path quadToPath(const FloatQuad& quad) | 94 Path quadToPath(const FloatQuad& quad) |
100 { | 95 { |
101 Path quadPath; | 96 Path quadPath; |
102 quadPath.moveTo(quad.p1()); | 97 quadPath.moveTo(quad.p1()); |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 m_timer.stop(); | 685 m_timer.stop(); |
691 } | 686 } |
692 | 687 |
693 void InspectorOverlay::startedRecordingProfile() | 688 void InspectorOverlay::startedRecordingProfile() |
694 { | 689 { |
695 if (!m_activeProfilerCount++) | 690 if (!m_activeProfilerCount++) |
696 freePage(); | 691 freePage(); |
697 } | 692 } |
698 | 693 |
699 } // namespace WebCore | 694 } // namespace WebCore |
OLD | NEW |