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

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

Issue 1730383003: DevTools: consistently use Maybe for optional values in the protocol generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 9 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/inspector/InspectorBaseAgent.h" 8 #include "core/inspector/InspectorBaseAgent.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 13 matching lines...) Expand all
24 virtual void setCPUThrottlingRate(double rate) {} 24 virtual void setCPUThrottlingRate(double rate) {}
25 }; 25 };
26 26
27 static PassOwnPtrWillBeRawPtr<InspectorEmulationAgent> create(WebLocalFrameI mpl*, Client*); 27 static PassOwnPtrWillBeRawPtr<InspectorEmulationAgent> create(WebLocalFrameI mpl*, Client*);
28 ~InspectorEmulationAgent() override; 28 ~InspectorEmulationAgent() override;
29 29
30 // protocol::Dispatcher::EmulationCommandHandler implementation. 30 // protocol::Dispatcher::EmulationCommandHandler implementation.
31 void resetPageScaleFactor(ErrorString*) override; 31 void resetPageScaleFactor(ErrorString*) override;
32 void setPageScaleFactor(ErrorString*, double in_pageScaleFactor) override; 32 void setPageScaleFactor(ErrorString*, double in_pageScaleFactor) override;
33 void setScriptExecutionDisabled(ErrorString*, bool in_value) override; 33 void setScriptExecutionDisabled(ErrorString*, bool in_value) override;
34 void setTouchEmulationEnabled(ErrorString*, bool in_enabled, const protocol: :OptionalValue<String>& in_configuration) override; 34 void setTouchEmulationEnabled(ErrorString*, bool in_enabled, const protocol: :Maybe<String>& in_configuration) override;
35 void setEmulatedMedia(ErrorString*, const String& in_media) override; 35 void setEmulatedMedia(ErrorString*, const String& in_media) override;
36 void setCPUThrottlingRate(ErrorString*, double in_rate) override; 36 void setCPUThrottlingRate(ErrorString*, double in_rate) override;
37 37
38 // InspectorBaseAgent overrides. 38 // InspectorBaseAgent overrides.
39 void disable(ErrorString*) override; 39 void disable(ErrorString*) override;
40 void restore() override; 40 void restore() override;
41 41
42 DECLARE_VIRTUAL_TRACE(); 42 DECLARE_VIRTUAL_TRACE();
43 43
44 private: 44 private:
45 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); 45 InspectorEmulationAgent(WebLocalFrameImpl*, Client*);
46 WebViewImpl* webViewImpl(); 46 WebViewImpl* webViewImpl();
47 47
48 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; 48 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl;
49 Client* m_client; 49 Client* m_client;
50 }; 50 };
51 51
52 } // namespace blink 52 } // namespace blink
53 53
54 #endif // !defined(InspectorEmulationAgent_h) 54 #endif // !defined(InspectorEmulationAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698