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

Side by Side Diff: third_party/WebKit/Source/web/InspectorEmulationAgent.h

Issue 1641003003: [DevTools] Small cleanup after device mode v2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@device-mode-cleanup-split
Patch Set: Created 4 years, 10 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InspectorEmulationAgent_h 5 #ifndef InspectorEmulationAgent_h
6 #define InspectorEmulationAgent_h 6 #define InspectorEmulationAgent_h
7 7
8 #include "core/InspectorFrontend.h" 8 #include "core/InspectorFrontend.h"
9 #include "core/inspector/InspectorBaseAgent.h" 9 #include "core/inspector/InspectorBaseAgent.h"
10 10
(...skipping 10 matching lines...) Expand all
21 class Client { 21 class Client {
22 public: 22 public:
23 virtual ~Client() {} 23 virtual ~Client() {}
24 24
25 virtual void setCPUThrottlingRate(double rate) {} 25 virtual void setCPUThrottlingRate(double rate) {}
26 }; 26 };
27 27
28 static PassOwnPtrWillBeRawPtr<InspectorEmulationAgent> create(WebLocalFrameI mpl*, Client*); 28 static PassOwnPtrWillBeRawPtr<InspectorEmulationAgent> create(WebLocalFrameI mpl*, Client*);
29 ~InspectorEmulationAgent() override; 29 ~InspectorEmulationAgent() override;
30 30
31 void viewportChanged();
32
33 // InspectorBackendDispatcher::EmulationCommandHandler implementation. 31 // InspectorBackendDispatcher::EmulationCommandHandler implementation.
34 void resetPageScaleFactor(ErrorString*) override; 32 void resetPageScaleFactor(ErrorString*) override;
35 void setPageScaleFactor(ErrorString*, double pageScaleFactor) override; 33 void setPageScaleFactor(ErrorString*, double pageScaleFactor) override;
36 void setScriptExecutionDisabled(ErrorString*, bool) override; 34 void setScriptExecutionDisabled(ErrorString*, bool) override;
37 void setTouchEmulationEnabled(ErrorString*, bool enabled, const String* conf iguration) override; 35 void setTouchEmulationEnabled(ErrorString*, bool enabled, const String* conf iguration) override;
38 void setEmulatedMedia(ErrorString*, const String&) override; 36 void setEmulatedMedia(ErrorString*, const String&) override;
39 void setCPUThrottlingRate(ErrorString*, double rate) override; 37 void setCPUThrottlingRate(ErrorString*, double rate) override;
40 38
41 // InspectorBaseAgent overrides. 39 // InspectorBaseAgent overrides.
42 void disable(ErrorString*) override; 40 void disable(ErrorString*) override;
43 void restore() override; 41 void restore() override;
44 void discardAgent() override;
45 void didCommitLoadForLocalFrame(LocalFrame*) override;
46 42
47 DECLARE_VIRTUAL_TRACE(); 43 DECLARE_VIRTUAL_TRACE();
48 44
49 private: 45 private:
50 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); 46 InspectorEmulationAgent(WebLocalFrameImpl*, Client*);
51 WebViewImpl* webViewImpl(); 47 WebViewImpl* webViewImpl();
52 48
53 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; 49 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl;
54 Client* m_client; 50 Client* m_client;
55 }; 51 };
56 52
57 } // namespace blink 53 } // namespace blink
58 54
59 #endif // !defined(InspectorEmulationAgent_h) 55 #endif // !defined(InspectorEmulationAgent_h)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | third_party/WebKit/Source/web/InspectorEmulationAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698