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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 namespace { | 64 namespace { |
65 | 65 |
66 class InspectorOverlayChromeClient final: public EmptyChromeClient { | 66 class InspectorOverlayChromeClient final: public EmptyChromeClient { |
67 public: | 67 public: |
68 InspectorOverlayChromeClient(ChromeClient& client, InspectorOverlayImpl* ove
rlay) | 68 InspectorOverlayChromeClient(ChromeClient& client, InspectorOverlayImpl* ove
rlay) |
69 : m_client(client) | 69 : m_client(client) |
70 , m_overlay(overlay) | 70 , m_overlay(overlay) |
71 { } | 71 { } |
72 | 72 |
73 virtual void setCursor(const Cursor& cursor) override | 73 void setCursor(const Cursor& cursor) override |
74 { | 74 { |
75 m_client.setCursor(cursor); | 75 m_client.setCursor(cursor); |
76 } | 76 } |
77 | 77 |
78 virtual void setToolTip(const String& tooltip, TextDirection direction) over
ride | 78 void setToolTip(const String& tooltip, TextDirection direction) override |
79 { | 79 { |
80 m_client.setToolTip(tooltip, direction); | 80 m_client.setToolTip(tooltip, direction); |
81 } | 81 } |
82 | 82 |
83 virtual void invalidateRect(const IntRect&) override | 83 void invalidateRect(const IntRect&) override |
84 { | 84 { |
85 m_overlay->invalidate(); | 85 m_overlay->invalidate(); |
86 } | 86 } |
87 | 87 |
88 private: | 88 private: |
89 ChromeClient& m_client; | 89 ChromeClient& m_client; |
90 InspectorOverlayImpl* m_overlay; | 90 InspectorOverlayImpl* m_overlay; |
91 }; | 91 }; |
92 | 92 |
93 class InspectorOverlayStub : public NoBaseWillBeGarbageCollectedFinalized<Inspec
torOverlayStub>, public InspectorOverlay { | 93 class InspectorOverlayStub : public NoBaseWillBeGarbageCollectedFinalized<Inspec
torOverlayStub>, public InspectorOverlay { |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 } | 487 } |
488 | 488 |
489 void InspectorOverlayImpl::setLayoutEditor(PassOwnPtrWillBeRawPtr<LayoutEditor>
layoutEditor) | 489 void InspectorOverlayImpl::setLayoutEditor(PassOwnPtrWillBeRawPtr<LayoutEditor>
layoutEditor) |
490 { | 490 { |
491 m_layoutEditor = layoutEditor; | 491 m_layoutEditor = layoutEditor; |
492 m_overlayHost->setLayoutEditorListener(m_layoutEditor.get()); | 492 m_overlayHost->setLayoutEditorListener(m_layoutEditor.get()); |
493 } | 493 } |
494 | 494 |
495 | 495 |
496 } // namespace blink | 496 } // namespace blink |
OLD | NEW |