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

Side by Side Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" 5 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h"
6 6
7 #include "core/frame/LocalFrame.h" 7 #include "core/frame/LocalFrame.h"
8 #include "core/inspector/InspectedFrames.h" 8 #include "core/inspector/InspectedFrames.h"
9 #include "modules/device_orientation/DeviceOrientationController.h" 9 #include "modules/device_orientation/DeviceOrientationController.h"
10 #include "modules/device_orientation/DeviceOrientationData.h" 10 #include "modules/device_orientation/DeviceOrientationData.h"
11 #include "platform/wtf/Assertions.h" 11 #include "platform/wtf/Assertions.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 using protocol::Response; 15 using protocol::Response;
16 16
17 namespace DeviceOrientationInspectorAgentState { 17 namespace DeviceOrientationInspectorAgentState {
18 static const char kAlpha[] = "alpha"; 18 static const char kAlpha[] = "alpha";
19 static const char kBeta[] = "beta"; 19 static const char kBeta[] = "beta";
20 static const char kGamma[] = "gamma"; 20 static const char kGamma[] = "gamma";
21 static const char kOverrideEnabled[] = "overrideEnabled"; 21 static const char kOverrideEnabled[] = "overrideEnabled";
22 } 22 } // namespace DeviceOrientationInspectorAgentState
23 23
24 DeviceOrientationInspectorAgent::~DeviceOrientationInspectorAgent() {} 24 DeviceOrientationInspectorAgent::~DeviceOrientationInspectorAgent() {}
25 25
26 DeviceOrientationInspectorAgent::DeviceOrientationInspectorAgent( 26 DeviceOrientationInspectorAgent::DeviceOrientationInspectorAgent(
27 InspectedFrames* inspected_frames) 27 InspectedFrames* inspected_frames)
28 : inspected_frames_(inspected_frames) {} 28 : inspected_frames_(inspected_frames) {}
29 29
30 DEFINE_TRACE(DeviceOrientationInspectorAgent) { 30 DEFINE_TRACE(DeviceOrientationInspectorAgent) {
31 visitor->Trace(inspected_frames_); 31 visitor->Trace(inspected_frames_);
32 InspectorBaseAgent::Trace(visitor); 32 InspectorBaseAgent::Trace(visitor);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void DeviceOrientationInspectorAgent::DidCommitLoadForLocalFrame( 88 void DeviceOrientationInspectorAgent::DidCommitLoadForLocalFrame(
89 LocalFrame* frame) { 89 LocalFrame* frame) {
90 if (frame == inspected_frames_->Root()) { 90 if (frame == inspected_frames_->Root()) {
91 // New document in main frame - apply override there. 91 // New document in main frame - apply override there.
92 // No need to cleanup previous one, as it's already gone. 92 // No need to cleanup previous one, as it's already gone.
93 Restore(); 93 Restore();
94 } 94 }
95 } 95 }
96 96
97 } // namespace blink 97 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698