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

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

Issue 1195793008: [DevTools] Implement screen orientation override. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Restore test Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationInspectorAgent.cpp ('k') | no next file » | 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) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2010-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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "core/inspector/PageDebuggerAgent.h" 70 #include "core/inspector/PageDebuggerAgent.h"
71 #include "core/inspector/PageRuntimeAgent.h" 71 #include "core/inspector/PageRuntimeAgent.h"
72 #include "core/layout/LayoutView.h" 72 #include "core/layout/LayoutView.h"
73 #include "core/page/FocusController.h" 73 #include "core/page/FocusController.h"
74 #include "core/page/Page.h" 74 #include "core/page/Page.h"
75 #include "modules/accessibility/InspectorAccessibilityAgent.h" 75 #include "modules/accessibility/InspectorAccessibilityAgent.h"
76 #include "modules/cachestorage/InspectorCacheStorageAgent.h" 76 #include "modules/cachestorage/InspectorCacheStorageAgent.h"
77 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" 77 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h"
78 #include "modules/filesystem/InspectorFileSystemAgent.h" 78 #include "modules/filesystem/InspectorFileSystemAgent.h"
79 #include "modules/indexeddb/InspectorIndexedDBAgent.h" 79 #include "modules/indexeddb/InspectorIndexedDBAgent.h"
80 #include "modules/screen_orientation/ScreenOrientationInspectorAgent.h"
80 #include "modules/storage/InspectorDOMStorageAgent.h" 81 #include "modules/storage/InspectorDOMStorageAgent.h"
81 #include "modules/webdatabase/InspectorDatabaseAgent.h" 82 #include "modules/webdatabase/InspectorDatabaseAgent.h"
82 #include "platform/JSONValues.h" 83 #include "platform/JSONValues.h"
83 #include "platform/RuntimeEnabledFeatures.h" 84 #include "platform/RuntimeEnabledFeatures.h"
84 #include "platform/TraceEvent.h" 85 #include "platform/TraceEvent.h"
85 #include "platform/graphics/GraphicsContext.h" 86 #include "platform/graphics/GraphicsContext.h"
86 #include "platform/graphics/paint/DisplayItemList.h" 87 #include "platform/graphics/paint/DisplayItemList.h"
87 #include "public/platform/Platform.h" 88 #include "public/platform/Platform.h"
88 #include "public/platform/WebLayerTreeView.h" 89 #include "public/platform/WebLayerTreeView.h"
89 #include "public/platform/WebRect.h" 90 #include "public/platform/WebRect.h"
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 m_pageConsoleAgent = pageConsoleAgentPtr.get(); 359 m_pageConsoleAgent = pageConsoleAgentPtr.get();
359 360
360 OwnPtrWillBeRawPtr<InspectorWorkerAgent> workerAgentPtr = InspectorWorkerAge nt::create(pageConsoleAgentPtr.get()); 361 OwnPtrWillBeRawPtr<InspectorWorkerAgent> workerAgentPtr = InspectorWorkerAge nt::create(pageConsoleAgentPtr.get());
361 362
362 OwnPtrWillBeRawPtr<InspectorTracingAgent> tracingAgentPtr = InspectorTracing Agent::create(this, workerAgentPtr.get(), m_pageAgent); 363 OwnPtrWillBeRawPtr<InspectorTracingAgent> tracingAgentPtr = InspectorTracing Agent::create(this, workerAgentPtr.get(), m_pageAgent);
363 m_tracingAgent = tracingAgentPtr.get(); 364 m_tracingAgent = tracingAgentPtr.get();
364 m_agents.append(tracingAgentPtr.release()); 365 m_agents.append(tracingAgentPtr.release());
365 366
366 m_agents.append(workerAgentPtr.release()); 367 m_agents.append(workerAgentPtr.release());
367 m_agents.append(pageConsoleAgentPtr.release()); 368 m_agents.append(pageConsoleAgentPtr.release());
369
370 m_agents.append(ScreenOrientationInspectorAgent::create(*m_webLocalFrameImpl ->frame()));
368 } 371 }
369 372
370 WebDevToolsAgentImpl::~WebDevToolsAgentImpl() 373 WebDevToolsAgentImpl::~WebDevToolsAgentImpl()
371 { 374 {
372 ASSERT(m_hasBeenDisposed); 375 ASSERT(m_hasBeenDisposed);
373 } 376 }
374 377
375 void WebDevToolsAgentImpl::dispose() 378 void WebDevToolsAgentImpl::dispose()
376 { 379 {
377 // Explicitly dispose of the agent before destructing to ensure 380 // Explicitly dispose of the agent before destructing to ensure
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) 747 if (!InspectorBackendDispatcher::getCommandName(message, &commandName))
745 return false; 748 return false;
746 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd) 749 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd)
747 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd) 750 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd)
748 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd) 751 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd)
749 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd) 752 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd)
750 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd); 753 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd);
751 } 754 }
752 755
753 } // namespace blink 756 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationInspectorAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698