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

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

Issue 1311783003: Devtools[LayoutEditor]: Rework layout-editor workflow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@resize
Patch Set: Address comments 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 return adoptRefWillBeNoop(new InspectorOverlayHost()); 44 return adoptRefWillBeNoop(new InspectorOverlayHost());
45 } 45 }
46 ~InspectorOverlayHost(); 46 ~InspectorOverlayHost();
47 DECLARE_TRACE(); 47 DECLARE_TRACE();
48 48
49 void resume(); 49 void resume();
50 void stepOver(); 50 void stepOver();
51 void startPropertyChange(const String&); 51 void startPropertyChange(const String&);
52 void changeProperty(float delta); 52 void changeProperty(float delta);
53 void endPropertyChange(); 53 void endPropertyChange();
54 void clearSelection(bool commitChanges);
54 55
55 class Listener : public WillBeGarbageCollectedMixin { 56 class Listener : public WillBeGarbageCollectedMixin {
56 public: 57 public:
57 virtual ~Listener() { } 58 virtual ~Listener() { }
58 virtual void overlayResumed() = 0; 59 virtual void overlayResumed() = 0;
59 virtual void overlaySteppedOver() = 0; 60 virtual void overlaySteppedOver() = 0;
60 virtual void overlayStartedPropertyChange(const String&) = 0; 61 virtual void overlayStartedPropertyChange(const String&) = 0;
61 virtual void overlayPropertyChanged(float cssDelta) = 0; 62 virtual void overlayPropertyChanged(float cssDelta) = 0;
62 virtual void overlayEndedPropertyChange() = 0; 63 virtual void overlayEndedPropertyChange() = 0;
64 virtual void overlayClearSelection(bool commitChanges) = 0;
63 }; 65 };
64 void setListener(Listener* listener) { m_listener = listener; } 66 void setListener(Listener* listener) { m_listener = listener; }
65 67
66 private: 68 private:
67 InspectorOverlayHost(); 69 InspectorOverlayHost();
68 70
69 RawPtrWillBeMember<Listener> m_listener; 71 RawPtrWillBeMember<Listener> m_listener;
70 72
71 }; 73 };
72 74
73 } // namespace blink 75 } // namespace blink
74 76
75 #endif // InspectorOverlayHost_h 77 #endif // InspectorOverlayHost_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorHighlight.cpp ('k') | Source/core/inspector/InspectorOverlayHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698