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

Side by Side Diff: Source/web/InspectorClientImpl.cpp

Issue 462353003: Cleanup namespace usage in Source/web[A-V]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor updates Created 6 years, 4 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
« no previous file with comments | « Source/web/IndexedDBClientImpl.cpp ('k') | Source/web/InspectorFrontendClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 27 matching lines...) Expand all
38 #include "core/page/Page.h" 38 #include "core/page/Page.h"
39 #include "platform/JSONValues.h" 39 #include "platform/JSONValues.h"
40 #include "platform/geometry/FloatRect.h" 40 #include "platform/geometry/FloatRect.h"
41 #include "public/platform/WebRect.h" 41 #include "public/platform/WebRect.h"
42 #include "public/platform/WebURL.h" 42 #include "public/platform/WebURL.h"
43 #include "public/platform/WebURLRequest.h" 43 #include "public/platform/WebURLRequest.h"
44 #include "public/web/WebViewClient.h" 44 #include "public/web/WebViewClient.h"
45 #include "web/WebDevToolsAgentImpl.h" 45 #include "web/WebDevToolsAgentImpl.h"
46 #include "web/WebViewImpl.h" 46 #include "web/WebViewImpl.h"
47 47
48 using namespace blink;
49
50 namespace blink { 48 namespace blink {
51 49
52 InspectorClientImpl::InspectorClientImpl(WebViewImpl* webView) 50 InspectorClientImpl::InspectorClientImpl(WebViewImpl* webView)
53 : m_inspectedWebView(webView) 51 : m_inspectedWebView(webView)
54 { 52 {
55 ASSERT(m_inspectedWebView); 53 ASSERT(m_inspectedWebView);
56 } 54 }
57 55
58 InspectorClientImpl::~InspectorClientImpl() 56 InspectorClientImpl::~InspectorClientImpl()
59 { 57 {
60 } 58 }
61 59
62 void InspectorClientImpl::highlight() 60 void InspectorClientImpl::highlight()
63 { 61 {
64 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 62 if (WebDevToolsAgentImpl* agent = devToolsAgent())
65 agent->highlight(); 63 agent->highlight();
66 } 64 }
67 65
68 void InspectorClientImpl::hideHighlight() 66 void InspectorClientImpl::hideHighlight()
69 { 67 {
70 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 68 if (WebDevToolsAgentImpl* agent = devToolsAgent())
71 agent->hideHighlight(); 69 agent->hideHighlight();
72 } 70 }
73 71
74 void InspectorClientImpl::sendMessageToFrontend(PassRefPtr<blink::JSONObject> me ssage) 72 void InspectorClientImpl::sendMessageToFrontend(PassRefPtr<JSONObject> message)
75 { 73 {
76 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 74 if (WebDevToolsAgentImpl* agent = devToolsAgent())
77 agent->sendMessageToFrontend(message); 75 agent->sendMessageToFrontend(message);
78 } 76 }
79 77
80 void InspectorClientImpl::flush() 78 void InspectorClientImpl::flush()
81 { 79 {
82 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 80 if (WebDevToolsAgentImpl* agent = devToolsAgent())
83 agent->flush(); 81 agent->flush();
84 } 82 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 204 if (WebDevToolsAgentImpl* agent = devToolsAgent())
207 agent->stopGPUEventsRecording(); 205 agent->stopGPUEventsRecording();
208 } 206 }
209 207
210 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() 208 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent()
211 { 209 {
212 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent( )); 210 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent( ));
213 } 211 }
214 212
215 } // namespace blink 213 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/IndexedDBClientImpl.cpp ('k') | Source/web/InspectorFrontendClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698