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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 if (minWidth >= kWidthForMaxFSM) | 139 if (minWidth >= kWidthForMaxFSM) |
140 return kMaxFSM; | 140 return kMaxFSM; |
141 | 141 |
142 // The font scale multiplier varies linearly between kMinFSM and kMaxFSM. | 142 // The font scale multiplier varies linearly between kMinFSM and kMaxFSM. |
143 float ratio = static_cast<float>(minWidth - kWidthForMinFSM) / (kWidthForMax
FSM - kWidthForMinFSM); | 143 float ratio = static_cast<float>(minWidth - kWidthForMinFSM) / (kWidthForMax
FSM - kWidthForMinFSM); |
144 return ratio * (kMaxFSM - kMinFSM) + kMinFSM; | 144 return ratio * (kMaxFSM - kMinFSM) + kMinFSM; |
145 } | 145 } |
146 | 146 |
147 } | 147 } |
148 | 148 |
149 class InspectorPageAgent::GetResourceContentLoadListener FINAL : public VoidCall
back { | 149 class InspectorPageAgent::GetResourceContentLoadListener final : public VoidCall
back { |
150 public: | 150 public: |
151 GetResourceContentLoadListener(InspectorPageAgent*, const String& frameId, c
onst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>); | 151 GetResourceContentLoadListener(InspectorPageAgent*, const String& frameId, c
onst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>); |
152 virtual void trace(Visitor*) OVERRIDE; | 152 virtual void trace(Visitor*) override; |
153 virtual void handleEvent() OVERRIDE; | 153 virtual void handleEvent() override; |
154 private: | 154 private: |
155 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 155 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
156 String m_frameId; | 156 String m_frameId; |
157 String m_url; | 157 String m_url; |
158 RefPtrWillBeMember<GetResourceContentCallback> m_callback; | 158 RefPtrWillBeMember<GetResourceContentCallback> m_callback; |
159 }; | 159 }; |
160 | 160 |
161 InspectorPageAgent::GetResourceContentLoadListener::GetResourceContentLoadListen
er(InspectorPageAgent* pageAgent, const String& frameId, const String& url, Pass
RefPtrWillBeRawPtr<GetResourceContentCallback> callback) | 161 InspectorPageAgent::GetResourceContentLoadListener::GetResourceContentLoadListen
er(InspectorPageAgent* pageAgent, const String& frameId, const String& url, Pass
RefPtrWillBeRawPtr<GetResourceContentCallback> callback) |
162 : m_pageAgent(pageAgent) | 162 : m_pageAgent(pageAgent) |
163 , m_frameId(frameId) | 163 , m_frameId(frameId) |
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 void InspectorPageAgent::trace(Visitor* visitor) | 1498 void InspectorPageAgent::trace(Visitor* visitor) |
1499 { | 1499 { |
1500 visitor->trace(m_page); | 1500 visitor->trace(m_page); |
1501 visitor->trace(m_injectedScriptManager); | 1501 visitor->trace(m_injectedScriptManager); |
1502 visitor->trace(m_inspectorResourceContentLoader); | 1502 visitor->trace(m_inspectorResourceContentLoader); |
1503 InspectorBaseAgent::trace(visitor); | 1503 InspectorBaseAgent::trace(visitor); |
1504 } | 1504 } |
1505 | 1505 |
1506 } // namespace blink | 1506 } // namespace blink |
1507 | 1507 |
OLD | NEW |